com.ca.jcs.cfg.apacheds.schema
Class SchemaFromFileConverter
java.lang.Object
org.apache.directory.server.core.schema.SchemaProducer
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaFromFileConverter
public SchemaFromFileConverter(String schemaName,
File schemaFile)
SchemaFromFileConverter
public SchemaFromFileConverter(String schemaName,
InputStream schemaStream)
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 2009-10-09 16:43 EST