Package org.nasutekds.server.types

Examples of org.nasutekds.server.types.Schema


  /**
   * {@inheritDoc}
   */
  public void configurationChanged(ConfigurationChangeEvent ev)
  {
    final Schema schema = ev.getNewDescriptor().getSchema();
    if (schema != null)
    {
      final SortedSet<String> auxiliaryOcs = new TreeSet<String>();
      final SortedSet<String> structuralOcs = new TreeSet<String>();
      for (ObjectClass oc : schema.getObjectClasses().values())
      {
        if (oc.getObjectClassType() == ObjectClassType.AUXILIARY)
        {
          if (!oc.getNameOrOID().equals("top"))
          {
View Full Code Here


      title.setIcon(null);
    }

    List<Object> ocs =
      sr.getAttributeValues(ServerConstants.OBJECTCLASS_ATTRIBUTE_TYPE_NAME);
    Schema schema = getInfo().getServerDescriptor().getSchema();
    if (!ocs.isEmpty() && (schema != null))
    {
      ObjectClassValue ocDesc = getObjectClassDescriptor(ocs, schema);
      StringBuffer sb = new StringBuffer();
      sb.append("<html>");
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void configurationChanged(ConfigurationChangeEvent ev)
  {
    Schema schema = ev.getNewDescriptor().getSchema();
    if (schema != null && schemaReadOnlyAttributes.isEmpty())
    {
      schemaReadOnlyAttributes.clear();
      schemaReadOnlyAttributesLowerCase.clear();
      for (AttributeType attr : schema.getAttributeTypes().values())
      {
        if (attr.isNoUserModification())
        {
          String attrName = attr.getNameOrOID();
          schemaReadOnlyAttributes.add(attrName);
View Full Code Here

      ObjectClassValue ocValue = (ObjectClassValue)value;
      if (ocValue.getStructural() != null)
      {
        sb.append("\n");
        sb.append(attrName+": "+ocValue.getStructural());
        Schema schema = getInfo().getServerDescriptor().getSchema();
        if (schema != null)
        {
          ObjectClass oc =
            schema.getObjectClass(ocValue.getStructural().toLowerCase());
          if (oc != null)
          {
            Set<String> names = getObjectClassSuperiorValues(oc);
            for (String name : names)
            {
View Full Code Here

   * and <CODE>false</CODE> otherwise.
   */
  protected boolean isBinary(String attrName)
  {
    boolean isBinary = false;
    Schema schema = getInfo().getServerDescriptor().getSchema();
    isBinary = Utilities.hasBinarySyntax(attrName, schema);
    return isBinary;
  }
View Full Code Here

   * syntax and <CODE>false</CODE> otherwise.
   */
  protected boolean isPassword(String attrName)
  {
    boolean isPassword = false;
    Schema schema = getInfo().getServerDescriptor().getSchema();
    isPassword = Utilities.hasPasswordSyntax(attrName, schema);
    return isPassword;
  }
View Full Code Here

TOP

Related Classes of org.nasutekds.server.types.Schema

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.