public class LdifSchemaLoader extends AbstractSchemaLoader
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
baseDirectory
directory containing the schema LDIF file for ou=schema
|
private static boolean |
IS_DEBUG
Speedup for DEBUG mode
|
private static java.lang.String |
LDIF_EXT
ldif file extension used
|
private java.io.FilenameFilter |
ldifFilter
a filter for listing all the LDIF files within a directory
|
private static org.slf4j.Logger |
LOG
static class logger
|
private static java.lang.String |
OU_SCHEMA_LDIF
ou=schema LDIF file name
|
schemaMap| Constructor and Description |
|---|
LdifSchemaLoader(java.io.File baseDirectory)
Creates a new LDIF based SchemaLoader.
|
| Modifier and Type | Method and Description |
|---|---|
private java.io.File |
getSchemaDirectory(Schema schema)
Utility method to get the file for a schema directory.
|
private void |
initializeSchemas()
Scans for LDIF files just describing the various schema contained in
the schema repository.
|
java.util.List<Entry> |
loadAttributeTypes(Schema... schemas)
Build a list of AttributeTypes read from the underlying storage for
a list of specified schema
|
java.util.List<Entry> |
loadComparators(Schema... schemas)
Build a list of Comparators read from the underlying storage for
a list of specific schema.
|
java.util.List<Entry> |
loadDitContentRules(Schema... schemas)
Build a list of DitContentRules read from the underlying storage for
a list of specific schema.
|
java.util.List<Entry> |
loadDitStructureRules(Schema... schemas)
Build a list of DitStructureRules read from the underlying storage for
a list of specific schema.
|
java.util.List<Entry> |
loadMatchingRules(Schema... schemas)
Build a list of MatchingRules read from the underlying storage for
a list of specific schema
|
java.util.List<Entry> |
loadMatchingRuleUses(Schema... schemas)
Build a list of MatchingRuleUses read from the underlying storage for
a list of specific schema.
|
java.util.List<Entry> |
loadNameForms(Schema... schemas)
Build a list of NameForms read from the underlying storage for
a list of specific schema.
|
java.util.List<Entry> |
loadNormalizers(Schema... schemas)
Build a list of Normalizers read from the underlying storage for
a list of specified schema
|
java.util.List<Entry> |
loadObjectClasses(Schema... schemas)
Build a list of ObjectClasses read from the underlying storage for
a list of specific schema.
|
java.util.List<Entry> |
loadSyntaxCheckers(Schema... schemas)
Build a list of SyntaxCheckers read from the underlying storage for
a list of specified schema
|
java.util.List<Entry> |
loadSyntaxes(Schema... schemas)
Build a list of Syntaxes read from the underlying storage for
a list of specified schema
|
addSchema, getAllEnabled, getAllSchemas, getSchema, getSchema, isRelaxed, isStrict, loadAttributeTypes, loadComparators, loadDitContentRules, loadDitStructureRules, loadMatchingRules, loadMatchingRuleUses, loadNameForms, loadNormalizers, loadObjectClasses, loadSyntaxCheckers, loadSyntaxes, removeSchema, setRelaxedprivate static final java.lang.String LDIF_EXT
private static final java.lang.String OU_SCHEMA_LDIF
private static final org.slf4j.Logger LOG
private static final boolean IS_DEBUG
private final java.io.File baseDirectory
private final java.io.FilenameFilter ldifFilter
public LdifSchemaLoader(java.io.File baseDirectory)
throws java.lang.Exception
baseDirectory - the schema LDIF base directoryjava.lang.Exception - if the base directory does not exist or does not
a valid schema.ldif fileprivate void initializeSchemas()
throws java.lang.Exception
java.lang.Exceptionprivate java.io.File getSchemaDirectory(Schema schema)
schema - the schema to get the file forpublic java.util.List<Entry> loadComparators(Schema... schemas) throws LdapException, java.io.IOException
schemas - the schemas from which Comparators are loadedLdapExceptionjava.io.IOExceptionpublic java.util.List<Entry> loadSyntaxCheckers(Schema... schemas) throws LdapException, java.io.IOException
schemas - the schemas from which SyntaxCheckers are loadedLdapExceptionjava.io.IOExceptionpublic java.util.List<Entry> loadNormalizers(Schema... schemas) throws LdapException, java.io.IOException
schemas - the schemas from which Normalizers are loadedLdapExceptionjava.io.IOExceptionpublic java.util.List<Entry> loadMatchingRules(Schema... schemas) throws LdapException, java.io.IOException
schemas - the schemas from which MatchingRules are loadedLdapExceptionjava.io.IOExceptionpublic java.util.List<Entry> loadSyntaxes(Schema... schemas) throws LdapException, java.io.IOException
schemas - the schemas from which Syntaxes are loadedLdapExceptionjava.io.IOExceptionpublic java.util.List<Entry> loadAttributeTypes(Schema... schemas) throws LdapException, java.io.IOException
schemas - the schemas from which AttributeTypes are loadedLdapExceptionjava.io.IOExceptionpublic java.util.List<Entry> loadMatchingRuleUses(Schema... schemas) throws LdapException, java.io.IOException
schemas - the schemas from which MatchingRuleUses are loadedLdapExceptionjava.io.IOExceptionpublic java.util.List<Entry> loadNameForms(Schema... schemas) throws LdapException, java.io.IOException
schemas - the schemas from which NameForms are loadedLdapExceptionjava.io.IOExceptionpublic java.util.List<Entry> loadDitContentRules(Schema... schemas) throws LdapException, java.io.IOException
schemas - the schemas from which DitContentRules are loadedLdapExceptionjava.io.IOExceptionpublic java.util.List<Entry> loadDitStructureRules(Schema... schemas) throws LdapException, java.io.IOException
schemas - the schemas from which DitStructureRules are loadedLdapExceptionjava.io.IOExceptionpublic java.util.List<Entry> loadObjectClasses(Schema... schemas) throws LdapException, java.io.IOException
schemas - the schemas from which ObjectClasses are loadedLdapExceptionjava.io.IOException