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

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

public class SchemaFromFileConverter
extends SchemaProducer

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.SchemaProducer
SchemaProducer.ConceteSchemaSyntax, SchemaProducer.ConcreteSchemaAttributeType, SchemaProducer.ConcreteSchemaMatchingRule, SchemaProducer.ConcreteSchemaObjectClass
 
Field Summary
 
Fields inherited from class org.apache.directory.server.core.schema.SchemaProducer
EMPTY
 
Constructor Summary
SchemaFromFileConverter(String schemaName, File schemaFile)
           
SchemaFromFileConverter(String schemaName, InputStream schemaStream)
           
 
Method Summary
 boolean convert(Registries registries)
          Returns true if conversion was successful.
 boolean convertAttributeTypes(Registries toRegistries, Collection<org.apache.directory.server.core.tools.schema.AttributeTypeLiteral> attributeTypeLiterals)
          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.SchemaProducer
newAttributeType, newMatchingRule, newObjectClass, newSyntax
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaFromFileConverter

public SchemaFromFileConverter(String schemaName,
                               File schemaFile)

SchemaFromFileConverter

public SchemaFromFileConverter(String schemaName,
                               InputStream schemaStream)
Method Detail

convert

public boolean convert(Registries registries)
                throws NamingException,
                       IOException,
                       ParseException
Returns true if conversion was successful.

Throws:
NamingException
IOException
ParseException

convertAttributeTypes

public boolean convertAttributeTypes(Registries toRegistries,
                                     Collection<org.apache.directory.server.core.tools.schema.AttributeTypeLiteral> attributeTypeLiterals)
                              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