public class JarLdifSchemaLoader extends AbstractSchemaLoader
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
IS_DEBUG
Speedup for DEBUG mode
|
private static java.lang.String |
LDIF_EXT
ldif file extension used
|
private static org.slf4j.Logger |
LOG
static class logger
|
private static java.util.Map<java.lang.String,java.lang.Boolean> |
RESOURCE_MAP
a map of all the resources in this jar
|
private static java.lang.String |
SEPARATOR_PATTERN
Filesystem path separator pattern, either forward slash or backslash.
|
schemaMap| Constructor and Description |
|---|
JarLdifSchemaLoader()
Creates a new LDIF based SchemaLoader.
|
| Modifier and Type | Method and Description |
|---|---|
private java.net.URL |
getResource(java.lang.String resource,
java.lang.String msg) |
private java.lang.String |
getSchemaDirectoryString(Schema schema)
Utility method to get a regex.Pattern fragment for the path 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 SEPARATOR_PATTERN
private static final java.lang.String LDIF_EXT
private static final org.slf4j.Logger LOG
private static final boolean IS_DEBUG
private static final java.util.Map<java.lang.String,java.lang.Boolean> RESOURCE_MAP
public JarLdifSchemaLoader()
throws java.lang.Exception
java.lang.Exception - if the base directory does not exist or does not
a valid schema.ldif fileprivate java.net.URL getResource(java.lang.String resource,
java.lang.String msg)
throws java.io.IOException
java.io.IOExceptionprivate void initializeSchemas()
throws java.lang.Exception
java.lang.Exceptionprivate java.lang.String getSchemaDirectoryString(Schema schema)
schema - the schema to get the path 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