com.ca.jcs.cfg.apacheds.schema
Class SchemaFromSearchConverter

java.lang.Object
  extended by org.apache.directory.server.core.schema.RegistrySchemaProducer
      extended by com.ca.jcs.cfg.apacheds.schema.SchemaFromSearchConverter

public class SchemaFromSearchConverter
extends RegistrySchemaProducer

Wrapper that can parse an OpenLDAP format schema and help register the contents with the ApacheDS SchemaService.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.directory.server.core.schema.RegistrySchemaProducer
RegistrySchemaProducer.ConceteSchemaSyntax, RegistrySchemaProducer.ConcreteSchemaAttributeType, RegistrySchemaProducer.ConcreteSchemaMatchingRule, RegistrySchemaProducer.ConcreteSchemaObjectClass
 
Field Summary
static String AT_COLLECTIVE_ATTR
           
static String AT_EQUALITY_ATTR
          Schema attributes defined for an "Attribute Type".
static String AT_NO_USER_MODIFICATION_ATTR
           
static String AT_ORDERING_ATTR
           
static String AT_SINGLE_VALUE_ATTR
           
static String AT_SUBSTRING_ATTR
           
static String AT_SYNTAX_ATTR
           
static String AT_USAGE_ATTR
           
static String DESC_ATTR
           
static String NAME_ATTR
           
static String OBSOLETE_ATTR
           
static String OC_ABSTRACT_ATTR
          Schema attributes defined for an "Object Class".
static String OC_AUXILIARY_ATTR
           
static String OC_MAY_ATTR
           
static String OC_MUST_ATTR
           
static String OC_STRUCTURAL_ATTR
           
static String OID_ATTR
          Common schema attributes defined for an "Object Class".
static String RL_SYNTAX
          Schema attributes defined for a "Matching Rule".
static String SUP_ATTR
           
 
Constructor Summary
SchemaFromSearchConverter(String schemaName, DirContext schema)
           
 
Method Summary
 void convert(GlobalRegistries registries)
           
 void convertAttributeTypes(GlobalRegistries toRegistries)
          Take in list() result on schema attribute type container and register types in global registry.
 
Methods inherited from class org.apache.directory.server.core.schema.RegistrySchemaProducer
newAttributeType, newMatchingRule, newObjectClass, newSyntax
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OID_ATTR

public static final String OID_ATTR
Common schema attributes defined for an "Object Class".

See Also:
Constant Field Values

NAME_ATTR

public static final String NAME_ATTR
See Also:
Constant Field Values

DESC_ATTR

public static final String DESC_ATTR
See Also:
Constant Field Values

OBSOLETE_ATTR

public static final String OBSOLETE_ATTR
See Also:
Constant Field Values

SUP_ATTR

public static final String SUP_ATTR
See Also:
Constant Field Values

AT_EQUALITY_ATTR

public static final String AT_EQUALITY_ATTR
Schema attributes defined for an "Attribute Type".

See Also:
Constant Field Values

AT_ORDERING_ATTR

public static final String AT_ORDERING_ATTR
See Also:
Constant Field Values

AT_SUBSTRING_ATTR

public static final String AT_SUBSTRING_ATTR
See Also:
Constant Field Values

AT_SYNTAX_ATTR

public static final String AT_SYNTAX_ATTR
See Also:
Constant Field Values

AT_SINGLE_VALUE_ATTR

public static final String AT_SINGLE_VALUE_ATTR
See Also:
Constant Field Values

AT_COLLECTIVE_ATTR

public static final String AT_COLLECTIVE_ATTR
See Also:
Constant Field Values

AT_NO_USER_MODIFICATION_ATTR

public static final String AT_NO_USER_MODIFICATION_ATTR
See Also:
Constant Field Values

AT_USAGE_ATTR

public static final String AT_USAGE_ATTR
See Also:
Constant Field Values

OC_ABSTRACT_ATTR

public static final String OC_ABSTRACT_ATTR
Schema attributes defined for an "Object Class".

See Also:
Constant Field Values

OC_STRUCTURAL_ATTR

public static final String OC_STRUCTURAL_ATTR
See Also:
Constant Field Values

OC_AUXILIARY_ATTR

public static final String OC_AUXILIARY_ATTR
See Also:
Constant Field Values

OC_MUST_ATTR

public static final String OC_MUST_ATTR
See Also:
Constant Field Values

OC_MAY_ATTR

public static final String OC_MAY_ATTR
See Also:
Constant Field Values

RL_SYNTAX

public static final String RL_SYNTAX
Schema attributes defined for a "Matching Rule".

See Also:
Constant Field Values
Constructor Detail

SchemaFromSearchConverter

public SchemaFromSearchConverter(String schemaName,
                                 DirContext schema)
Method Detail

convert

public void convert(GlobalRegistries registries)
             throws NamingException
Throws:
NamingException

convertAttributeTypes

public void convertAttributeTypes(GlobalRegistries toRegistries)
                           throws NamingException
Take in list() result on schema attribute type container and register types in global registry.

Parameters:
toRegistries - Registry to be populated.
Throws:
NamingException


Created 2011-07-14 13:27 EST