public class DefaultSchemaLoader extends AbstractSchemaLoader
schemaMap| Constructor and Description |
|---|
DefaultSchemaLoader(LdapConnection connection)
Creates a new instance of DefaultSchemaLoader.
|
DefaultSchemaLoader(LdapConnection connection,
boolean relaxed)
Creates a new instance of DefaultSchemaLoader.
|
DefaultSchemaLoader(LdapConnection connection,
Dn subschemaSubentryDn)
Creates a new instance of NetworkSchemaLoader.
|
| Modifier and Type | Method and Description |
|---|---|
private Entry |
getEntry(LdapComparatorDescription comparatorDescription) |
private Entry |
getEntry(NormalizerDescription normalizerDescription) |
private Entry |
getEntry(SyntaxCheckerDescription syntaxCheckerDescription) |
private boolean |
isApacheDs(Entry rootDse)
Indicates if the given Root DSE corresponds to an ApacheDS server.
|
private void |
loadAttributeTypes(Attribute attributeTypes) |
java.util.List<Entry> |
loadAttributeTypes(Schema... schemas)
Build a list of AttributeTypes read from the underlying storage for
a list of specified schema
|
private void |
loadComparators(Attribute comparators) |
java.util.List<Entry> |
loadComparators(Schema... schemas)
Build a list of Comparators read from the underlying storage for
a list of specific schema.
|
private void |
loadDitContentRules(Attribute ditContentRules) |
java.util.List<Entry> |
loadDitContentRules(Schema... schemas)
Build a list of DitContentRules read from the underlying storage for
a list of specific schema.
|
private void |
loadDitStructureRules(Attribute ditStructureRules) |
java.util.List<Entry> |
loadDitStructureRules(Schema... schemas)
Build a list of DitStructureRules read from the underlying storage for
a list of specific schema.
|
private void |
loadLdapSyntaxes(Attribute ldapSyntaxes) |
private void |
loadMatchingRules(Attribute matchingRules) |
java.util.List<Entry> |
loadMatchingRules(Schema... schemas)
Build a list of MatchingRules read from the underlying storage for
a list of specific schema
|
private void |
loadMatchingRuleUses(Attribute matchingRuleUses) |
java.util.List<Entry> |
loadMatchingRuleUses(Schema... schemas)
Build a list of MatchingRuleUses read from the underlying storage for
a list of specific schema.
|
private void |
loadNameForms(Attribute nameForms) |
java.util.List<Entry> |
loadNameForms(Schema... schemas)
Build a list of NameForms read from the underlying storage for
a list of specific schema.
|
private void |
loadNormalizers(Attribute normalizers) |
java.util.List<Entry> |
loadNormalizers(Schema... schemas)
Build a list of Normalizers read from the underlying storage for
a list of specified schema
|
private void |
loadObjectClasses(Attribute objectClasses) |
java.util.List<Entry> |
loadObjectClasses(Schema... schemas)
Build a list of ObjectClasses read from the underlying storage for
a list of specific schema.
|
private void |
loadSchemas()
Load all the schemas.
|
private void |
loadSyntaxCheckers(Attribute syntaxCheckers) |
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
|
void |
setQuirksMode(boolean enabled)
Sets the quirks mode for all the internal parsers.
|
private void |
updateSchemas(SchemaObject schemaObject) |
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 DEFAULT_APACHEDS_VENDOR_NAME
private static final org.slf4j.Logger LOG
private LdapConnection connection
private Dn subschemaSubentryDn
private static final AttributeTypeDescriptionSchemaParser AT_DESCR_SCHEMA_PARSER
private static final DitStructureRuleDescriptionSchemaParser DSR_DESCR_SCHEMA_PARSER
private static final DitContentRuleDescriptionSchemaParser DCR_DESCR_SCHEMA_PARSER
private static final MatchingRuleDescriptionSchemaParser MR_DESCR_SCHEMA_PARSER
private static final MatchingRuleUseDescriptionSchemaParser MRU_DESCR_SCHEMA_PARSER
private static final NameFormDescriptionSchemaParser NF_DESCR_SCHEMA_PARSER
private static final ObjectClassDescriptionSchemaParser OC_DESCR_SCHEMA_PARSER
private static final LdapSyntaxDescriptionSchemaParser LS_DESCR_SCHEMA_PARSER
private static final LdapComparatorDescriptionSchemaParser C_DESCR_SCHEMA_PARSER
private static final NormalizerDescriptionSchemaParser N_DESCR_SCHEMA_PARSER
private static final SyntaxCheckerDescriptionSchemaParser SC_DESCR_SCHEMA_PARSER
public DefaultSchemaLoader(LdapConnection connection) throws LdapException
connection - the LDAP connectionjava.lang.Exception - if the connection is not authenticated or if there are any problems
while loading the schema entriesLdapExceptionpublic DefaultSchemaLoader(LdapConnection connection, boolean relaxed) throws LdapException
connection - the LDAP connectioninitial - setting for the relaxed modejava.lang.Exception - if the connection is not authenticated or if there are any problems
while loading the schema entriesLdapExceptionpublic DefaultSchemaLoader(LdapConnection connection, Dn subschemaSubentryDn) throws java.lang.Exception
connection - the LDAP connectionjava.lang.Exception - if the connection is not authenticated or if there are any problems
while loading the schema entriesprivate boolean isApacheDs(Entry rootDse) throws LdapInvalidAttributeValueException
rootDse - the Root DSEtrue if this is an ApacheDS server,
false if not.LdapInvalidAttributeValueExceptionprivate void loadSchemas()
throws LdapException
subschemaSubentryDn - java.lang.ExceptionLdapExceptionprivate void loadAttributeTypes(Attribute attributeTypes) throws LdapException
LdapExceptionprivate void loadComparators(Attribute comparators) throws LdapException
LdapExceptionprivate void loadDitContentRules(Attribute ditContentRules) throws LdapException
LdapExceptionprivate void loadDitStructureRules(Attribute ditStructureRules) throws LdapException
LdapExceptionprivate void loadLdapSyntaxes(Attribute ldapSyntaxes) throws LdapException
LdapExceptionprivate void loadMatchingRules(Attribute matchingRules) throws LdapException
LdapExceptionprivate void loadMatchingRuleUses(Attribute matchingRuleUses) throws LdapException
LdapExceptionprivate void loadNameForms(Attribute nameForms) throws LdapException
LdapExceptionprivate void loadNormalizers(Attribute normalizers) throws LdapException
LdapExceptionprivate void loadObjectClasses(Attribute objectClasses) throws LdapException
LdapExceptionprivate void loadSyntaxCheckers(Attribute syntaxCheckers) throws LdapException
LdapExceptionprivate void updateSchemas(SchemaObject schemaObject)
public 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> loadComparators(Schema... schemas) throws LdapException, java.io.IOException
schemas - the schemas from which Comparators 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> loadMatchingRuleUses(Schema... schemas) throws LdapException, java.io.IOException
schemas - the schemas from which MatchingRuleUses 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> loadNameForms(Schema... schemas) throws LdapException, java.io.IOException
schemas - the schemas from which NameForms 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> loadObjectClasses(Schema... schemas) throws LdapException, java.io.IOException
schemas - the schemas from which ObjectClasses 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> loadSyntaxes(Schema... schemas) throws LdapException, java.io.IOException
schemas - the schemas from which Syntaxes are loadedLdapExceptionjava.io.IOExceptionprivate Entry getEntry(LdapComparatorDescription comparatorDescription)
private Entry getEntry(SyntaxCheckerDescription syntaxCheckerDescription)
private Entry getEntry(NormalizerDescription normalizerDescription)
public void setQuirksMode(boolean enabled)
enabled - the new quirks mode