public class DefaultSchemaLoader
extends org.apache.directory.api.ldap.model.schema.registries.AbstractSchemaLoader
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.directory.api.ldap.model.schema.parsers.AttributeTypeDescriptionSchemaParser |
AT_DESCR_SCHEMA_PARSER
The SubschemaSubentry descriptions parsers
|
private static org.apache.directory.api.ldap.model.schema.parsers.LdapComparatorDescriptionSchemaParser |
C_DESCR_SCHEMA_PARSER |
private LdapConnection |
connection
the connection to the ldap server
|
private static org.apache.directory.api.ldap.model.schema.parsers.DitContentRuleDescriptionSchemaParser |
DCR_DESCR_SCHEMA_PARSER |
private static String |
DEFAULT_APACHEDS_VENDOR_NAME |
private static org.apache.directory.api.ldap.model.schema.parsers.DitStructureRuleDescriptionSchemaParser |
DSR_DESCR_SCHEMA_PARSER |
private static org.slf4j.Logger |
LOG
the logger
|
private static org.apache.directory.api.ldap.model.schema.parsers.LdapSyntaxDescriptionSchemaParser |
LS_DESCR_SCHEMA_PARSER |
private static org.apache.directory.api.ldap.model.schema.parsers.MatchingRuleDescriptionSchemaParser |
MR_DESCR_SCHEMA_PARSER |
private static org.apache.directory.api.ldap.model.schema.parsers.MatchingRuleUseDescriptionSchemaParser |
MRU_DESCR_SCHEMA_PARSER |
private static org.apache.directory.api.ldap.model.schema.parsers.NormalizerDescriptionSchemaParser |
N_DESCR_SCHEMA_PARSER |
private static org.apache.directory.api.ldap.model.schema.parsers.NameFormDescriptionSchemaParser |
NF_DESCR_SCHEMA_PARSER |
private static org.apache.directory.api.ldap.model.schema.parsers.ObjectClassDescriptionSchemaParser |
OC_DESCR_SCHEMA_PARSER |
private static org.apache.directory.api.ldap.model.schema.parsers.SyntaxCheckerDescriptionSchemaParser |
SC_DESCR_SCHEMA_PARSER |
private org.apache.directory.api.ldap.model.name.Dn |
subschemaSubentryDn
the subschemaSubentry DN
|
| 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,
org.apache.directory.api.ldap.model.name.Dn subschemaSubentryDn)
Creates a new instance of NetworkSchemaLoader.
|
| Modifier and Type | Method and Description |
|---|---|
private org.apache.directory.api.ldap.model.entry.Entry |
getEntry(org.apache.directory.api.ldap.model.schema.parsers.LdapComparatorDescription comparatorDescription) |
private org.apache.directory.api.ldap.model.entry.Entry |
getEntry(org.apache.directory.api.ldap.model.schema.parsers.NormalizerDescription normalizerDescription) |
private org.apache.directory.api.ldap.model.entry.Entry |
getEntry(org.apache.directory.api.ldap.model.schema.parsers.SyntaxCheckerDescription syntaxCheckerDescription) |
private boolean |
isApacheDs(org.apache.directory.api.ldap.model.entry.Entry rootDse)
Indicates if the given Root DSE corresponds to an ApacheDS server.
|
private void |
loadAttributeTypes(org.apache.directory.api.ldap.model.entry.Attribute attributeTypes) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadAttributeTypes(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
private void |
loadComparators(org.apache.directory.api.ldap.model.entry.Attribute comparators) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadComparators(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
private void |
loadDitContentRules(org.apache.directory.api.ldap.model.entry.Attribute ditContentRules) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadDitContentRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
private void |
loadDitStructureRules(org.apache.directory.api.ldap.model.entry.Attribute ditStructureRules) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadDitStructureRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
private void |
loadLdapSyntaxes(org.apache.directory.api.ldap.model.entry.Attribute ldapSyntaxes) |
private void |
loadMatchingRules(org.apache.directory.api.ldap.model.entry.Attribute matchingRules) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadMatchingRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
private void |
loadMatchingRuleUses(org.apache.directory.api.ldap.model.entry.Attribute matchingRuleUses) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadMatchingRuleUses(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
private void |
loadNameForms(org.apache.directory.api.ldap.model.entry.Attribute nameForms) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadNameForms(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
private void |
loadNormalizers(org.apache.directory.api.ldap.model.entry.Attribute normalizers) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadNormalizers(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
private void |
loadObjectClasses(org.apache.directory.api.ldap.model.entry.Attribute objectClasses) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadObjectClasses(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
private void |
loadSchemas()
Load all the schemas.
|
private void |
loadSyntaxCheckers(org.apache.directory.api.ldap.model.entry.Attribute syntaxCheckers) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadSyntaxCheckers(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadSyntaxes(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
void |
setQuirksMode(boolean enabled)
Sets the quirks mode for all the internal parsers.
|
private void |
updateSchemas(org.apache.directory.api.ldap.model.schema.SchemaObject schemaObject) |
addSchema, getAllEnabled, getAllSchemas, getSchema, getSchema, isRelaxed, isStrict, loadAttributeTypes, loadComparators, loadDitContentRules, loadDitStructureRules, loadMatchingRules, loadMatchingRuleUses, loadNameForms, loadNormalizers, loadObjectClasses, loadSyntaxCheckers, loadSyntaxes, removeSchema, setRelaxedprivate static final String DEFAULT_APACHEDS_VENDOR_NAME
private static final org.slf4j.Logger LOG
private LdapConnection connection
private org.apache.directory.api.ldap.model.name.Dn subschemaSubentryDn
private static final org.apache.directory.api.ldap.model.schema.parsers.AttributeTypeDescriptionSchemaParser AT_DESCR_SCHEMA_PARSER
private static final org.apache.directory.api.ldap.model.schema.parsers.DitStructureRuleDescriptionSchemaParser DSR_DESCR_SCHEMA_PARSER
private static final org.apache.directory.api.ldap.model.schema.parsers.DitContentRuleDescriptionSchemaParser DCR_DESCR_SCHEMA_PARSER
private static final org.apache.directory.api.ldap.model.schema.parsers.MatchingRuleDescriptionSchemaParser MR_DESCR_SCHEMA_PARSER
private static final org.apache.directory.api.ldap.model.schema.parsers.MatchingRuleUseDescriptionSchemaParser MRU_DESCR_SCHEMA_PARSER
private static final org.apache.directory.api.ldap.model.schema.parsers.NameFormDescriptionSchemaParser NF_DESCR_SCHEMA_PARSER
private static final org.apache.directory.api.ldap.model.schema.parsers.ObjectClassDescriptionSchemaParser OC_DESCR_SCHEMA_PARSER
private static final org.apache.directory.api.ldap.model.schema.parsers.LdapSyntaxDescriptionSchemaParser LS_DESCR_SCHEMA_PARSER
private static final org.apache.directory.api.ldap.model.schema.parsers.LdapComparatorDescriptionSchemaParser C_DESCR_SCHEMA_PARSER
private static final org.apache.directory.api.ldap.model.schema.parsers.NormalizerDescriptionSchemaParser N_DESCR_SCHEMA_PARSER
private static final org.apache.directory.api.ldap.model.schema.parsers.SyntaxCheckerDescriptionSchemaParser SC_DESCR_SCHEMA_PARSER
public DefaultSchemaLoader(LdapConnection connection) throws org.apache.directory.api.ldap.model.exception.LdapException
connection - the LDAP connectionorg.apache.directory.api.ldap.model.exception.LdapException - if the connection is not authenticated or if there are any problems
while loading the schema entriespublic DefaultSchemaLoader(LdapConnection connection, boolean relaxed) throws org.apache.directory.api.ldap.model.exception.LdapException
connection - the LDAP connectionrelaxed - initial setting for the relaxed modeorg.apache.directory.api.ldap.model.exception.LdapException - if the connection is not authenticated or if there are any problems
while loading the schema entriespublic DefaultSchemaLoader(LdapConnection connection, org.apache.directory.api.ldap.model.name.Dn subschemaSubentryDn) throws org.apache.directory.api.ldap.model.exception.LdapException
connection - the LDAP connectionsubschemaSubentryDn - The SubschemaSubentryorg.apache.directory.api.ldap.model.exception.LdapException - if the connection is not authenticated or if there are any problems
while loading the schema entriesprivate boolean isApacheDs(org.apache.directory.api.ldap.model.entry.Entry rootDse)
throws org.apache.directory.api.ldap.model.exception.LdapInvalidAttributeValueException
rootDse - the Root DSEtrue if this is an ApacheDS server,
false if not.org.apache.directory.api.ldap.model.exception.LdapInvalidAttributeValueException - If the vendorName attribute contains an invalid valueprivate void loadSchemas()
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException - If one schema can't be loadedprivate void loadAttributeTypes(org.apache.directory.api.ldap.model.entry.Attribute attributeTypes)
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionprivate void loadComparators(org.apache.directory.api.ldap.model.entry.Attribute comparators)
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionprivate void loadDitContentRules(org.apache.directory.api.ldap.model.entry.Attribute ditContentRules)
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionprivate void loadDitStructureRules(org.apache.directory.api.ldap.model.entry.Attribute ditStructureRules)
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionprivate void loadLdapSyntaxes(org.apache.directory.api.ldap.model.entry.Attribute ldapSyntaxes)
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionprivate void loadMatchingRules(org.apache.directory.api.ldap.model.entry.Attribute matchingRules)
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionprivate void loadMatchingRuleUses(org.apache.directory.api.ldap.model.entry.Attribute matchingRuleUses)
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionprivate void loadNameForms(org.apache.directory.api.ldap.model.entry.Attribute nameForms)
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionprivate void loadNormalizers(org.apache.directory.api.ldap.model.entry.Attribute normalizers)
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionprivate void loadObjectClasses(org.apache.directory.api.ldap.model.entry.Attribute objectClasses)
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionprivate void loadSyntaxCheckers(org.apache.directory.api.ldap.model.entry.Attribute syntaxCheckers)
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionprivate void updateSchemas(org.apache.directory.api.ldap.model.schema.SchemaObject schemaObject)
public List<org.apache.directory.api.ldap.model.entry.Entry> loadAttributeTypes(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadComparators(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadDitContentRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadDitStructureRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadMatchingRuleUses(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadMatchingRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadNameForms(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadNormalizers(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadObjectClasses(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadSyntaxCheckers(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadSyntaxes(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionprivate org.apache.directory.api.ldap.model.entry.Entry getEntry(org.apache.directory.api.ldap.model.schema.parsers.LdapComparatorDescription comparatorDescription)
private org.apache.directory.api.ldap.model.entry.Entry getEntry(org.apache.directory.api.ldap.model.schema.parsers.SyntaxCheckerDescription syntaxCheckerDescription)
private org.apache.directory.api.ldap.model.entry.Entry getEntry(org.apache.directory.api.ldap.model.schema.parsers.NormalizerDescription normalizerDescription)
public void setQuirksMode(boolean enabled)
enabled - the new quirks modeCopyright © 2009–2019 The Apache Software Foundation. All rights reserved.