public class DefaultSchemaManager extends java.lang.Object implements SchemaManager
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.lang.Throwable> |
errors
The list of errors produced when loading some schema elements
|
private EntityFactory |
factory
the factory that generates respective SchemaObjects from LDIF entries
|
private boolean |
isRelaxed
A flag indicating that the SchemaManager is relaxed or not
|
private static org.slf4j.Logger |
LOG
static class logger
|
private Dn |
namingContext
The NamingContext this SchemaManager is associated with
|
private Registries |
registries
The global registries for this namingContext
|
private java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
schemaDependences
A Map containing all the schema being dependent from a schema
|
private SchemaLoader |
schemaLoader
The Schema schemaLoader used by this SchemaManager
|
RELAXED, STRICT| Constructor and Description |
|---|
DefaultSchemaManager()
Creates a new instance of DefaultSchemaManager with the default schema schemaLoader
|
DefaultSchemaManager(SchemaLoader loader)
Creates a new instance of DefaultSchemaManager with the default schema schemaLoader
|
DefaultSchemaManager(SchemaLoader loader,
Dn namingContext)
Creates a new instance of DefaultSchemaManager, for a specific
naming context
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(SchemaObject schemaObject)
Registers a new SchemaObject.
|
private void |
addAttributeTypes(Schema schema,
Registries registries)
Add all the Schema's AttributeTypes
|
private void |
addComparators(Schema schema,
Registries registries)
Add all the Schema's comparators
|
private void |
addMatchingRules(Schema schema,
Registries registries)
Add all the Schema's MatchingRules
|
private void |
addNormalizers(Schema schema,
Registries registries)
Add all the Schema's Normalizers
|
private void |
addObjectClasses(Schema schema,
Registries registries)
Add all the Schema's ObjectClasses
|
private SchemaObject |
addSchemaObject(Registries registries,
SchemaObject schemaObject,
Schema schema)
Add the schemaObject into the registries.
|
private void |
addSchemaObjects(Schema schema,
Registries registries) |
private void |
addSyntaxCheckers(Schema schema,
Registries registries)
Add
Register all the Schema's SyntaxCheckers
|
private void |
addSyntaxes(Schema schema,
Registries registries)
Add all the Schema's Syntaxes
|
private boolean |
checkOidExist(SchemaObject schemaObject)
Check that the given OID exists in the globalOidRegistry.
|
private Registries |
cloneRegistries()
Clone the registries before doing any modification on it.
|
private SchemaObject |
copy(SchemaObject schemaObject) |
boolean |
delete(SchemaObject schemaObject)
Unregisters a new SchemaObject.
|
private void |
deleteSchemaObjects(Schema schema,
Registries registries)
Delete all the schemaObjects for a given schema from the registries
|
boolean |
disable(Schema... schemas)
Disables a set of Schemas, and returns true if all the schema have been
disabled, with all the dependent schemas, and if the registries is
still consistent.
|
boolean |
disable(java.lang.String... schemaNames)
Disables a set of Schemas, and returns true if all the schema have been
disabled, with all the dependent schemas, and if the registries is
still consistent.
|
boolean |
disabledRelaxed(Schema... schemas)
Disables a set of Schemas, and returns true if all the schema have been
disabled, with all the dependent schemas.
|
boolean |
disabledRelaxed(java.lang.String... schemas)
Disables a set of Schemas, and returns true if all the schema have been
disabled, with all the dependent schemas.
|
boolean |
enable(Schema... schemas)
Enables a set of Schemas, and returns true if all the schema have been
enabled, with all the dependent schemas, and if the registries is
still consistent.
|
boolean |
enable(java.lang.String... schemaNames)
Enables a set of Schemas, and returns true if all the schema have been
enabled, with all the dependent schemas, and if the registries is
still consistent.
|
boolean |
enableRelaxed(Schema... schemas)
Enables a set of Schemas, and returns true if all the schema have been
enabled, with all the dependent schemas.
|
boolean |
enableRelaxed(java.lang.String... schemas)
Enables a set of Schemas, and returns true if all the schema have been
enabled, with all the dependent schemas.
|
AttributeType |
getAttributeType(java.lang.String oid)
Get an AttributeType in the AttributeType registry.
|
AttributeTypeRegistry |
getAttributeTypeRegistry()
Get an immutable reference on the AttributeType registry
|
ComparatorRegistry |
getComparatorRegistry()
Get an immutable reference on the Comparator registry
|
java.util.List<Schema> |
getDisabled() |
DitContentRuleRegistry |
getDITContentRuleRegistry()
Get an immutable reference on the DitContentRule registry
|
DitStructureRuleRegistry |
getDITStructureRuleRegistry()
Get an immutable reference on the DitStructureRule registry
|
java.util.List<Schema> |
getEnabled() |
java.util.List<java.lang.Throwable> |
getErrors() |
OidRegistry |
getGlobalOidRegistry()
Returns a reference to the global OidRegistry
|
LdapSyntaxRegistry |
getLdapSyntaxRegistry()
Get an immutable reference on the LdapSyntax registry
|
Schema |
getLoadedSchema(java.lang.String schemaName)
Gets a schema that has been loaded into these Registries.
|
SchemaLoader |
getLoader() |
MatchingRuleRegistry |
getMatchingRuleRegistry()
Get an immutable reference on the MatchingRule registry
|
MatchingRuleUseRegistry |
getMatchingRuleUseRegistry()
Get an immutable reference on the MatchingRuleUse registry
|
NameFormRegistry |
getNameFormRegistry()
Get an immutable reference on the NameForm registry
|
Dn |
getNamingContext() |
java.util.Map<java.lang.String,OidNormalizer> |
getNormalizerMapping()
Get an immutable reference on the Normalizer mapping
|
NormalizerRegistry |
getNormalizerRegistry()
Get an immutable reference on the Normalizer registry
|
ObjectClassRegistry |
getObjectClassRegistry()
Get an immutable reference on the ObjectClass registry
|
Registries |
getRegistries() |
private java.lang.String |
getSchemaName(SchemaObject schemaObject)
Retrieve the schema name for a specific SchemaObject, or return "other" if none is found.
|
private SchemaObject |
getSchemaObject(SchemaObject schemaObject)
Get the inner SchemaObject if it's not a C/N/SC
|
SyntaxCheckerRegistry |
getSyntaxCheckerRegistry()
Get an immutable reference on the SyntaxChecker registry
|
void |
initialize()
Initializes the SchemaService
|
boolean |
isDisabled(Schema schema)
Tells if the given Schema is disabled
|
boolean |
isDisabled(java.lang.String schemaName)
Tells if the given Schema is disabled
|
boolean |
isDisabledAccepted() |
boolean |
isEnabled(Schema schema)
Tells if the given Schema is enabled
|
boolean |
isEnabled(java.lang.String schemaName)
Tells if the given Schema is enabled
|
boolean |
isRelaxed()
Tells if the SchemaManager is permissive or if it must be checked
against inconsistencies.
|
boolean |
isSchemaLoaded(java.lang.String schemaName)
Tells if the specific schema is loaded
|
boolean |
isStrict()
Tells if the SchemaManager is strict.
|
java.util.Set<java.lang.String> |
listDependentSchemaNames(java.lang.String schemaName)
Get the list of Schema names which has the given schema name as a dependence
|
private boolean |
load(Registries registries,
Schema schema)
Load the schema in the registries.
|
boolean |
load(Schema... schemas)
Load some Schemas into the registries.
|
boolean |
load(java.lang.String... schemaNames)
Load some Schemas into the registries.
|
boolean |
loadAllEnabled()
Load all the enabled schema into the Registries.
|
boolean |
loadAllEnabledRelaxed()
Load all the enabled schema into the Registries.
|
private void |
loadDepsFirst(Registries registries,
Schema schema)
Recursive method which loads schema's with their dependent schemas first
and tracks what schemas it has seen so the recursion does not go out of
control with dependency cycle detection.
|
private void |
loadDepsFirstRelaxed(Schema schema)
Recursive method which loads schema's with their dependent schemas first
and tracks what schemas it has seen so the recursion does not go out of
control with dependency cycle detection.
|
boolean |
loadDisabled(Schema... schemas)
Load Schemas into the Registries, even if they are disabled.
|
boolean |
loadDisabled(java.lang.String... schemaNames)
Load Schemas into the Registries, even if they are disabled.
|
boolean |
loadRelaxed(Schema... schemas)
Load Schemas into the registries, even if there are some errors in the schemas.
|
boolean |
loadRelaxed(java.lang.String... schemaNames)
Load Schemas into the registries, even if there are some errors in the schemas.
|
boolean |
loadWithDeps(Schema... schemas)
Load some Schemas into the registries, and loads all of the schemas they depend
on.
|
boolean |
loadWithDeps(java.lang.String... schemas)
Load some Schemas into the registries, and loads all of the schemas they depend
on.
|
boolean |
loadWithDepsRelaxed(Schema... schemas)
Load some Schemas into the registries, and loads all of the schemas they depend
on.
|
boolean |
loadWithDepsRelaxed(java.lang.String... schemas)
Load some Schemas into the registries, and loads all of the schemas they depend
on.
|
AttributeType |
lookupAttributeTypeRegistry(java.lang.String oid)
Lookup for an AttributeType in the AttributeType registry
|
LdapComparator<?> |
lookupComparatorRegistry(java.lang.String oid)
Lookup for a Comparator in the Comparator registry
|
LdapSyntax |
lookupLdapSyntaxRegistry(java.lang.String oid)
Lookup for an LdapSyntax in the LdapSyntax registry
|
MatchingRule |
lookupMatchingRuleRegistry(java.lang.String oid)
Lookup for a MatchingRule in the MatchingRule registry
|
Normalizer |
lookupNormalizerRegistry(java.lang.String oid)
Lookup for a Normalizer in the Normalizer registry
|
ObjectClass |
lookupObjectClassRegistry(java.lang.String oid)
Lookup for a ObjectClass in the ObjectClass registry
|
SyntaxChecker |
lookupSyntaxCheckerRegistry(java.lang.String oid)
Lookup for a SyntaxChecker in the SyntaxChecker registry
|
void |
setRegistries(Registries registries)
Associate a new Registries to the SchemaManager
|
void |
setRelaxed()
Change the SchemaManager to a relaxed mode, where invalid SchemaObjects
can be registered.
|
void |
setSchemaLoader(SchemaLoader schemaLoader)
Associate a Schema loader to this SchemaManager
|
void |
setStrict()
Change the SchemaManager to a strict mode, where invalid SchemaObjects
cannot be registered.
|
private java.lang.String |
stripOptions(java.lang.String oid)
Get rid of AT's options (everything after the ';'
|
private Schema[] |
toArray(java.lang.String... schemas)
Transform a String[] array of schema to a Schema[]
|
private boolean |
unload(Registries registries,
Schema schema)
Unload the schema from the registries.
|
boolean |
unload(Schema... schemas)
Unload the given set of Schemas
|
boolean |
unload(java.lang.String... schemaNames)
Unload the given set of Schemas
|
SchemaObject |
unregisterAttributeType(java.lang.String attributeTypeOid)
Removes the registered attributeType from the attributeTypeRegistry
|
SchemaObject |
unregisterComparator(java.lang.String comparatorOid)
Removes the registered Comparator from the ComparatorRegistry
|
SchemaObject |
unregisterDitControlRule(java.lang.String ditControlRuleOid)
Removes the registered DitControlRule from the DitControlRuleRegistry
|
SchemaObject |
unregisterDitStructureRule(java.lang.String ditStructureRuleOid)
Removes the registered DitStructureRule from the DitStructureRuleRegistry
|
SchemaObject |
unregisterLdapSyntax(java.lang.String ldapSyntaxOid)
Removes the registered LdapSyntax from the LdapSyntaxRegistry
|
SchemaObject |
unregisterMatchingRule(java.lang.String matchingRuleOid)
Removes the registered MatchingRule from the MatchingRuleRegistry
|
SchemaObject |
unregisterMatchingRuleUse(java.lang.String matchingRuleUseOid)
Removes the registered MatchingRuleUse from the MatchingRuleUseRegistry
|
SchemaObject |
unregisterNameForm(java.lang.String nameFormOid)
Removes the registered NameForm from the NameFormRegistry
|
SchemaObject |
unregisterNormalizer(java.lang.String normalizerOid)
Removes the registered Normalizer from the NormalizerRegistry
|
SchemaObject |
unregisterObjectClass(java.lang.String objectClassOid)
Removes the registered ObjectClass from the ObjectClassRegistry
|
SchemaObject |
unregisterSyntaxChecker(java.lang.String syntaxCheckerOid)
Removes the registered SyntaxChecker from the SyntaxCheckerRegistry
|
boolean |
verify(Schema... schemas)
Check that the Schemas are consistent regarding the current Registries.
|
boolean |
verify(java.lang.String... schemas)
Check that the Schemas are consistent regarding the current Registries.
|
private static final org.slf4j.Logger LOG
private Dn namingContext
private volatile Registries registries
private java.util.List<java.lang.Throwable> errors
private SchemaLoader schemaLoader
private final EntityFactory factory
private java.util.Map<java.lang.String,java.util.Set<java.lang.String>> schemaDependences
private boolean isRelaxed
public DefaultSchemaManager()
throws java.lang.Exception
loader - The schema loader to usejava.lang.Exceptionpublic DefaultSchemaManager(SchemaLoader loader)
loader - The schema loader to usepublic DefaultSchemaManager(SchemaLoader loader, Dn namingContext)
loader - The schema loader to usenamingContext - The associated NamingContextprivate Registries cloneRegistries() throws LdapException
LdapExceptionprivate Schema[] toArray(java.lang.String... schemas) throws LdapException
LdapExceptionprivate void addSchemaObjects(Schema schema, Registries registries) throws LdapException
LdapExceptionprivate void deleteSchemaObjects(Schema schema, Registries registries) throws LdapException
LdapExceptionpublic boolean disable(Schema... schemas) throws LdapException
disable in interface SchemaManagerschemas - The list of schemas to disableLdapExceptionpublic boolean disable(java.lang.String... schemaNames)
throws LdapException
disable in interface SchemaManagerschemaNames - The list of schema names to disableLdapExceptionpublic boolean disabledRelaxed(Schema... schemas)
disabledRelaxed in interface SchemaManagerschemas - The list of schemas to disablepublic boolean disabledRelaxed(java.lang.String... schemas)
disabledRelaxed in interface SchemaManagerschemas - The list of schema names to disablepublic java.util.List<Schema> getDisabled()
getDisabled in interface SchemaManagerpublic boolean enable(Schema... schemas) throws LdapException
enable in interface SchemaManagerschemas - The list of schemas to enableLdapExceptionpublic boolean enable(java.lang.String... schemaNames)
throws LdapException
enable in interface SchemaManagerschemaNames - The list of schema name to enableLdapExceptionpublic boolean enableRelaxed(Schema... schemas)
enableRelaxed in interface SchemaManagerschemas - The list of schemas to enablepublic boolean enableRelaxed(java.lang.String... schemas)
enableRelaxed in interface SchemaManagerschemas - The list of schema names to enablepublic java.util.List<Schema> getEnabled()
getEnabled in interface SchemaManagerpublic java.util.List<java.lang.Throwable> getErrors()
getErrors in interface SchemaManagerpublic Registries getRegistries()
getRegistries in interface SchemaManagerpublic boolean isDisabledAccepted()
public boolean load(Schema... schemas) throws LdapException
SchemaManager.getErrors() method will contain themload in interface SchemaManagerschemas - the Schemas to loadLdapExceptionpublic boolean load(java.lang.String... schemaNames)
throws java.lang.Exception
SchemaManager.getErrors() method will contain themload in interface SchemaManagerschemaNames - the Schemas' name to loadjava.lang.Exception - @TODOprivate boolean load(Registries registries, Schema schema) throws LdapException
LdapExceptionprivate boolean unload(Registries registries, Schema schema) throws LdapException
LdapExceptionprivate void addAttributeTypes(Schema schema, Registries registries) throws LdapException, java.io.IOException
LdapExceptionjava.io.IOExceptionprivate void addComparators(Schema schema, Registries registries) throws LdapException, java.io.IOException
LdapExceptionjava.io.IOExceptionprivate void addMatchingRules(Schema schema, Registries registries) throws LdapException, java.io.IOException
LdapExceptionjava.io.IOExceptionprivate void addNormalizers(Schema schema, Registries registries) throws LdapException, java.io.IOException
LdapExceptionjava.io.IOExceptionprivate void addObjectClasses(Schema schema, Registries registries) throws LdapException, java.io.IOException
LdapExceptionjava.io.IOExceptionprivate void addSyntaxes(Schema schema, Registries registries) throws LdapException, java.io.IOException
LdapExceptionjava.io.IOExceptionprivate void addSyntaxCheckers(Schema schema, Registries registries) throws LdapException, java.io.IOException
LdapExceptionjava.io.IOExceptionprivate SchemaObject addSchemaObject(Registries registries, SchemaObject schemaObject, Schema schema) throws LdapException
registries - The RegistriesschemaObject - The SchemaObject containing the SchemaObject descriptionschema - The associated schemaLdapException - If the registering failedpublic boolean loadAllEnabled()
throws java.lang.Exception
loadAllEnabled in interface SchemaManagerjava.lang.Exception - @TODOpublic boolean loadAllEnabledRelaxed()
throws java.lang.Exception
loadAllEnabledRelaxed in interface SchemaManagerjava.lang.Exception - @TODOpublic boolean loadDisabled(Schema... schemas) throws LdapException
SchemaManager.getErrors() method will contain themloadDisabled in interface SchemaManagerschemas - The Schemas to loadLdapExceptionpublic boolean loadDisabled(java.lang.String... schemaNames)
throws LdapException
SchemaManager.getErrors() method will contain themloadDisabled in interface SchemaManagerschemaNames - The Schemas' name to loadLdapExceptionpublic boolean loadRelaxed(Schema... schemas) throws java.lang.Exception
SchemaManager.getErrors() method will contain themloadRelaxed in interface SchemaManagerschemas - the Schemas to load, if enabledjava.lang.Exception - @TODOpublic boolean loadRelaxed(java.lang.String... schemaNames)
throws java.lang.Exception
SchemaManager.getErrors() method will contain themloadRelaxed in interface SchemaManagerschemaNames - the Schemas' name to load, if enabledjava.lang.Exception - @TODOpublic boolean loadWithDeps(Schema... schemas) throws java.lang.Exception
SchemaManager.getErrors() method will contain themloadWithDeps in interface SchemaManagerschemas - the Schemas to loadjava.lang.Exception - @TODOpublic boolean loadWithDeps(java.lang.String... schemas)
throws java.lang.Exception
SchemaManager.getErrors() method will contain themloadWithDeps in interface SchemaManagerschemas - the Schemas' name to loadjava.lang.Exception - @TODOprivate void loadDepsFirst(Registries registries, Schema schema) throws java.lang.Exception
registries - The Registries in which the schemas will be loadedschema - the current schema we are attempting to loadjava.lang.Exception - if there is a cycle detected and/or another
failure results while loading, producing and or registering schema objectspublic boolean loadWithDepsRelaxed(Schema... schemas) throws java.lang.Exception
SchemaManager.getErrors() method will contain themloadWithDepsRelaxed in interface SchemaManagerschemas - the Schemas to loadjava.lang.Exception - @TODOpublic boolean loadWithDepsRelaxed(java.lang.String... schemas)
throws java.lang.Exception
SchemaManager.getErrors() method will contain themloadWithDepsRelaxed in interface SchemaManagerschemas - the Schemas' name to loadjava.lang.Exception - @TODOprivate void loadDepsFirstRelaxed(Schema schema) throws java.lang.Exception
schema - the current schema we are attempting to loadjava.lang.Exception - if there is a cycle detected and/or another
failure results while loading, producing and or registering schema objectspublic void setRegistries(Registries registries)
setRegistries in interface SchemaManagerregistries - The new Registriespublic boolean unload(Schema... schemas) throws LdapException
unload in interface SchemaManagerschemas - The list of Schema to unloadLdapExceptionpublic boolean unload(java.lang.String... schemaNames)
throws LdapException
unload in interface SchemaManagerschemaNames - The list of Schema to unloadLdapExceptionpublic boolean verify(Schema... schemas) throws java.lang.Exception
verify in interface SchemaManagerschemas - The schemas to checkjava.lang.Exception - if something went wrongpublic boolean verify(java.lang.String... schemas)
throws java.lang.Exception
verify in interface SchemaManagerschemas - The schema names to checkjava.lang.Exception - if something went wrongpublic void setSchemaLoader(SchemaLoader schemaLoader)
setSchemaLoader in interface SchemaManagerschemaLoader - The schema loader to usepublic Dn getNamingContext()
getNamingContext in interface SchemaManagerpublic void initialize()
throws java.lang.Exception
initialize in interface SchemaManagerjava.lang.Exception - If the initialization failspublic SchemaLoader getLoader()
getLoader in interface SchemaManagerpublic AttributeTypeRegistry getAttributeTypeRegistry()
getAttributeTypeRegistry in interface SchemaManagerpublic ComparatorRegistry getComparatorRegistry()
getComparatorRegistry in interface SchemaManagerpublic DitContentRuleRegistry getDITContentRuleRegistry()
getDITContentRuleRegistry in interface SchemaManagerpublic DitStructureRuleRegistry getDITStructureRuleRegistry()
getDITStructureRuleRegistry in interface SchemaManagerpublic MatchingRuleRegistry getMatchingRuleRegistry()
getMatchingRuleRegistry in interface SchemaManagerpublic MatchingRuleUseRegistry getMatchingRuleUseRegistry()
getMatchingRuleUseRegistry in interface SchemaManagerpublic NameFormRegistry getNameFormRegistry()
getNameFormRegistry in interface SchemaManagerpublic NormalizerRegistry getNormalizerRegistry()
getNormalizerRegistry in interface SchemaManagerpublic ObjectClassRegistry getObjectClassRegistry()
getObjectClassRegistry in interface SchemaManagerpublic LdapSyntaxRegistry getLdapSyntaxRegistry()
getLdapSyntaxRegistry in interface SchemaManagerpublic SyntaxCheckerRegistry getSyntaxCheckerRegistry()
getSyntaxCheckerRegistry in interface SchemaManagerprivate java.lang.String stripOptions(java.lang.String oid)
oid - public AttributeType lookupAttributeTypeRegistry(java.lang.String oid) throws LdapException
lookupAttributeTypeRegistry in interface SchemaManageroid - the OID we are looking forLdapException - if the OID is not found in the AttributeType registrypublic AttributeType getAttributeType(java.lang.String oid)
getAttributeType in interface SchemaManageroid - the OID we are looking forpublic LdapComparator<?> lookupComparatorRegistry(java.lang.String oid) throws LdapException
lookupComparatorRegistry in interface SchemaManageroid - the OID we are looking forLdapException - if the OID is not found in the Comparator registrypublic MatchingRule lookupMatchingRuleRegistry(java.lang.String oid) throws LdapException
lookupMatchingRuleRegistry in interface SchemaManageroid - the OID we are looking forLdapException - if the OID is not found in the MatchingRule registrypublic Normalizer lookupNormalizerRegistry(java.lang.String oid) throws LdapException
lookupNormalizerRegistry in interface SchemaManageroid - the OID we are looking forLdapException - if the OID is not found in the Normalizer registrypublic ObjectClass lookupObjectClassRegistry(java.lang.String oid) throws LdapException
lookupObjectClassRegistry in interface SchemaManageroid - the OID we are looking forLdapException - if the OID is not found in the ObjectClass registrypublic LdapSyntax lookupLdapSyntaxRegistry(java.lang.String oid) throws LdapException
lookupLdapSyntaxRegistry in interface SchemaManageroid - the OID we are looking forLdapException - if the OID is not found in the LdapSyntax registrypublic SyntaxChecker lookupSyntaxCheckerRegistry(java.lang.String oid) throws LdapException
lookupSyntaxCheckerRegistry in interface SchemaManageroid - the OID we are looking forLdapException - if the OID is not found in the SyntaxChecker registryprivate boolean checkOidExist(SchemaObject schemaObject)
private SchemaObject getSchemaObject(SchemaObject schemaObject) throws LdapException
LdapExceptionprivate java.lang.String getSchemaName(SchemaObject schemaObject)
private SchemaObject copy(SchemaObject schemaObject)
public boolean add(SchemaObject schemaObject) throws LdapException
add in interface SchemaManagerschemaObject - the SchemaObject to registerLdapException - if the SchemaObject is already registered or
the registration operation is not supportedpublic boolean delete(SchemaObject schemaObject) throws LdapException
delete in interface SchemaManagerschemaObject - the SchemaObject to unregisterLdapExceptionpublic java.util.Map<java.lang.String,OidNormalizer> getNormalizerMapping()
getNormalizerMapping in interface SchemaManagerpublic OidRegistry getGlobalOidRegistry()
getGlobalOidRegistry in interface SchemaManagerpublic Schema getLoadedSchema(java.lang.String schemaName)
getLoadedSchema in interface SchemaManagerschemaName - the name of the schema to lookuppublic boolean isSchemaLoaded(java.lang.String schemaName)
isSchemaLoaded in interface SchemaManagerschemaName - The schema we want to checkpublic SchemaObject unregisterAttributeType(java.lang.String attributeTypeOid) throws LdapException
unregisterAttributeType in interface SchemaManagerattributeTypeOid - the attributeType OID to unregisterLdapException - if the attributeType is invalidpublic SchemaObject unregisterComparator(java.lang.String comparatorOid) throws LdapException
unregisterComparator in interface SchemaManagercomparatorOid - the Comparator OID to unregisterLdapException - if the Comparator is invalidpublic SchemaObject unregisterDitControlRule(java.lang.String ditControlRuleOid) throws LdapException
unregisterDitControlRule in interface SchemaManagerditControlRuleOid - the DitControlRule OID to unregisterLdapException - if the DitControlRule is invalidpublic SchemaObject unregisterDitStructureRule(java.lang.String ditStructureRuleOid) throws LdapException
unregisterDitStructureRule in interface SchemaManagerditStructureRuleOid - the DitStructureRule OID to unregisterLdapException - if the DitStructureRule is invalidpublic SchemaObject unregisterLdapSyntax(java.lang.String ldapSyntaxOid) throws LdapException
unregisterLdapSyntax in interface SchemaManagerldapSyntaxOid - the LdapSyntax OID to unregisterLdapException - if the LdapSyntax is invalidpublic SchemaObject unregisterMatchingRule(java.lang.String matchingRuleOid) throws LdapException
unregisterMatchingRule in interface SchemaManagermatchingRuleOid - the MatchingRuleRule OID to unregisterLdapException - if the MatchingRule is invalidpublic SchemaObject unregisterMatchingRuleUse(java.lang.String matchingRuleUseOid) throws LdapException
unregisterMatchingRuleUse in interface SchemaManagermatchingRuleUseOid - the MatchingRuleUse OID to unregisterLdapException - if the MatchingRuleUse is invalidpublic SchemaObject unregisterNameForm(java.lang.String nameFormOid) throws LdapException
unregisterNameForm in interface SchemaManagernameFormOid - the NameForm OID to unregisterLdapException - if the NameForm is invalidpublic SchemaObject unregisterNormalizer(java.lang.String normalizerOid) throws LdapException
unregisterNormalizer in interface SchemaManagernormalizerOid - the Normalizer OID to unregisterLdapException - if the Normalizer is invalidpublic SchemaObject unregisterObjectClass(java.lang.String objectClassOid) throws LdapException
unregisterObjectClass in interface SchemaManagerobjectClassOid - the ObjectClass OID to unregisterLdapException - if the ObjectClass is invalidpublic SchemaObject unregisterSyntaxChecker(java.lang.String syntaxCheckerOid) throws LdapException
unregisterSyntaxChecker in interface SchemaManagersyntaxCheckerOid - the SyntaxChecker OID to unregisterLdapException - if the SyntaxChecker is invalidpublic boolean isRelaxed()
isRelaxed in interface SchemaManagerpublic boolean isStrict()
isStrict in interface SchemaManagerpublic java.util.Set<java.lang.String> listDependentSchemaNames(java.lang.String schemaName)
listDependentSchemaNames in interface SchemaManagerschemaName - The Schema name for which we want to get the list of dependent schemaspublic void setRelaxed()
setRelaxed in interface SchemaManagerpublic void setStrict()
setStrict in interface SchemaManagerpublic boolean isDisabled(java.lang.String schemaName)
isDisabled in interface SchemaManagerschemaName - The schema namepublic boolean isDisabled(Schema schema)
isDisabled in interface SchemaManagerschema - The schemapublic boolean isEnabled(java.lang.String schemaName)
isEnabled in interface SchemaManagerschemaName - The schema namepublic boolean isEnabled(Schema schema)
isEnabled in interface SchemaManagerschema - The schema