org.apache.directory.server.utils
Class AttributesFactory

java.lang.Object
  extended by org.apache.directory.server.utils.AttributesFactory

public class AttributesFactory
extends java.lang.Object

A factory that generates an entry using the meta schema for schema elements.

Version:
$Rev$
Author:
Apache Directory Project

Constructor Summary
AttributesFactory()
           
 
Method Summary
 ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.AttributeType attributeType, Schema schema, Registries registries)
           objectclass ( 1.3.6.1.4.1.18060.0.4.0.3.3 NAME 'metaAttributeType' DESC 'meta definition of the AttributeType object' SUP metaTop STRUCTURAL MUST ( m-name $ m-syntax ) MAY ( m-supAttributeType $ m-obsolete $ m-equality $ m-ordering $ m-substr $ m-singleValue $ m-collective $ m-noUserModification $ m-usage $ m-extensionAttributeType ) )
 ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.DITContentRule dITContentRule, Schema schema, Registries registries)
           
 ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.DITStructureRule dITStructureRule, Schema schema, Registries registries)
           
 ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.MatchingRule matchingRule, Schema schema, Registries registries)
           
 ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.MatchingRuleUse matchingRuleUse, Schema schema, Registries registries)
           
 ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.NameForm nameForm, Schema schema, Registries registries)
           
 ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.ObjectClass objectClass, Schema schema, Registries registries)
          Creates the attributes of an entry representing an objectClass.
 ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.SchemaObject obj, Schema schema, Registries registries)
           
 ServerEntry getAttributes(Schema schema, Registries registries)
           
 ServerEntry getAttributes(java.lang.String oid, java.util.Comparator comparator, Schema schema, Registries registries)
           
 ServerEntry getAttributes(java.lang.String oid, org.apache.directory.shared.ldap.schema.Normalizer normalizer, Schema schema, Registries registries)
           
 ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.syntax.SyntaxChecker syntaxChecker, Schema schema, Registries registries)
           
 ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.Syntax syntax, Schema schema, Registries registries)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributesFactory

public AttributesFactory()
Method Detail

getAttributes

public ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.SchemaObject obj,
                                 Schema schema,
                                 Registries registries)
                          throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getAttributes

public ServerEntry getAttributes(Schema schema,
                                 Registries registries)
                          throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getAttributes

public ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.syntax.SyntaxChecker syntaxChecker,
                                 Schema schema,
                                 Registries registries)

getAttributes

public ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.Syntax syntax,
                                 Schema schema,
                                 Registries registries)
                          throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getAttributes

public ServerEntry getAttributes(java.lang.String oid,
                                 org.apache.directory.shared.ldap.schema.Normalizer normalizer,
                                 Schema schema,
                                 Registries registries)

getAttributes

public ServerEntry getAttributes(java.lang.String oid,
                                 java.util.Comparator comparator,
                                 Schema schema,
                                 Registries registries)

getAttributes

public ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.MatchingRule matchingRule,
                                 Schema schema,
                                 Registries registries)
                          throws javax.naming.NamingException
Parameters:
matchingRule -
Returns:
Attributes
Throws:
javax.naming.NamingException

getAttributes

public ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.MatchingRuleUse matchingRuleUse,
                                 Schema schema,
                                 Registries registries)

getAttributes

public ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.DITStructureRule dITStructureRule,
                                 Schema schema,
                                 Registries registries)

getAttributes

public ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.DITContentRule dITContentRule,
                                 Schema schema,
                                 Registries registries)

getAttributes

public ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.NameForm nameForm,
                                 Schema schema,
                                 Registries registries)

getAttributes

public ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.AttributeType attributeType,
                                 Schema schema,
                                 Registries registries)
                          throws javax.naming.NamingException
    objectclass ( 1.3.6.1.4.1.18060.0.4.0.3.3
       NAME 'metaAttributeType'
       DESC 'meta definition of the AttributeType object'
       SUP metaTop
       STRUCTURAL
       MUST ( m-name $ m-syntax )
       MAY ( m-supAttributeType $ m-obsolete $ m-equality $ m-ordering $ 
             m-substr $ m-singleValue $ m-collective $ m-noUserModification $ 
             m-usage $ m-extensionAttributeType )
    )
 

Parameters:
attributeType -
Returns:
Attributes
Throws:
javax.naming.NamingException

getAttributes

public ServerEntry getAttributes(org.apache.directory.shared.ldap.schema.ObjectClass objectClass,
                                 Schema schema,
                                 Registries registries)
                          throws javax.naming.NamingException
Creates the attributes of an entry representing an objectClass.
  objectclass ( 1.3.6.1.4.1.18060.0.4.0.3.2
      NAME 'metaObjectClass'
      DESC 'meta definition of the objectclass object'
      SUP metaTop
      STRUCTURAL
      MUST m-oid
      MAY ( m-name $ m-obsolete $ m-supObjectClass $ m-typeObjectClass $ m-must $ 
            m-may $ m-extensionObjectClass )
  )
 

Parameters:
objectClass - the objectClass to produce a meta schema entry for
Returns:
the attributes of the metaSchema entry representing the objectClass
Throws:
javax.naming.NamingException - if there are any problems


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.