Class AbstractSchemaLoader
java.lang.Object
org.apache.directory.api.ldap.model.schema.registries.AbstractSchemaLoader
- All Implemented Interfaces:
SchemaLoader
An abstract class with a utility method and setListener() implemented.
- Author:
- Apache Directory Project
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a new schema to the schema's listfinal Collection<Schema> Get the list of enabled schemasfinal Collection<Schema> Get the list of all schemasGets a schema object based on it's name.protected SchemaGets the schema.booleanIs the schemaLoader in relaxed mode?booleanisStrict()Is the schemaLoader in strict mode?loadAttributeTypes(String... schemaNames) Build a list of AttributeTypes read from the underlying storage for a list of specific schema, using their nameloadComparators(String... schemaNames) Build a list of Comparators read from the underlying storage for a list of specific schema, using their nameloadDitContentRules(String... schemaNames) Build a list of DitContentRules read from the underlying storage for a list of specified schema namesloadDitStructureRules(String... schemaNames) Build a list of DitStructureRules read from the underlying storage for a list of specified schema namesloadMatchingRules(String... schemaNames) Build a list of MatchingRules read from the underlying storage for a list of specific schema, using their nameloadMatchingRuleUses(String... schemaNames) Build a list of MatchingRuleUses read from the underlying storage for a list of specified schema namesloadNameForms(String... schemaNames) Build a list of NameForms read from the underlying storage for a list of specified schema namesloadNormalizers(String... schemaNames) Build a list of Normalizers read from the underlying storage for a list of specified schema namesloadObjectClasses(String... schemaNames) Build a list of ObjectClasses read from the underlying storage for a list of specified schema namesloadSyntaxCheckers(String... schemaNames) Build a list of SyntaxCheckers read from the underlying storage for a list of specified schema namesloadSyntaxes(String... schemaNames) Build a list of Syntaxes read from the underlying storage for a list of specified schema namesvoidremoveSchema(Schema schema) Remove a schema from the schema's listvoidsetRelaxed(boolean relaxed) Set the SchemzLoader in STRICT or RELAXED mode.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SchemaLoader
loadAttributeTypes, loadComparators, loadDitContentRules, loadDitStructureRules, loadMatchingRules, loadMatchingRuleUses, loadNameForms, loadNormalizers, loadObjectClasses, loadSyntaxCheckers, loadSyntaxes
-
Field Details
-
schemaMap
-
-
Constructor Details
-
AbstractSchemaLoader
protected AbstractSchemaLoader()Default constructor
-
-
Method Details
-
getAllEnabled
Get the list of enabled schemas- Specified by:
getAllEnabledin interfaceSchemaLoader- Returns:
- the list of enabled schemas
-
getAllSchemas
Get the list of all schemas- Specified by:
getAllSchemasin interfaceSchemaLoader- Returns:
- the list of all schemas
-
getSchema
Gets a schema object based on it's name.- Specified by:
getSchemain interfaceSchemaLoader- Parameters:
schemaName- the name of the schema to load- Returns:
- the Schema object associated with the name
-
addSchema
Add a new schema to the schema's list- Specified by:
addSchemain interfaceSchemaLoader- Parameters:
schema- The schema to add
-
removeSchema
Remove a schema from the schema's list- Specified by:
removeSchemain interfaceSchemaLoader- Parameters:
schema- The schema to remove
-
getSchema
Gets the schema.- Parameters:
entry- the entry- Returns:
- the schema
- Throws:
LdapException- the exception
-
loadAttributeTypes
Build a list of AttributeTypes read from the underlying storage for a list of specific schema, using their name- Specified by:
loadAttributeTypesin interfaceSchemaLoader- Parameters:
schemaNames- the schema names from which AttributeTypes are loaded- Returns:
- The list of loaded AttributeTypes
- Throws:
LdapException- if there are failures accessing AttributeType informationIOException- If we can't read the schemaObject
-
loadComparators
Build a list of Comparators read from the underlying storage for a list of specific schema, using their name- Specified by:
loadComparatorsin interfaceSchemaLoader- Parameters:
schemaNames- the schema names from which Comparators are loaded- Returns:
- The list of loaded Comparators
- Throws:
LdapException- if there are failures accessing Comparator informationIOException- If we can't read the schemaObject
-
loadDitContentRules
Build a list of DitContentRules read from the underlying storage for a list of specified schema names- Specified by:
loadDitContentRulesin interfaceSchemaLoader- Parameters:
schemaNames- the schema names from which DitContentRules are loaded- Returns:
- The list of loaded DitContentRules
- Throws:
LdapException- if there are failures accessing DitContentRule informationIOException- If we can't read the schemaObject
-
loadDitStructureRules
Build a list of DitStructureRules read from the underlying storage for a list of specified schema names- Specified by:
loadDitStructureRulesin interfaceSchemaLoader- Parameters:
schemaNames- the schema names from which DitStructureRules are loaded- Returns:
- The list of loaded DitStructureRules
- Throws:
LdapException- if there are failures accessing DitStructureRule informationIOException- If we can't read the schemaObject
-
loadMatchingRules
Build a list of MatchingRules read from the underlying storage for a list of specific schema, using their name- Specified by:
loadMatchingRulesin interfaceSchemaLoader- Parameters:
schemaNames- the schema names from which MatchingRules are loaded- Returns:
- The list of loaded MatchingRules
- Throws:
LdapException- if there are failures accessing MatchingRule informationIOException- If we can't read the schemaObject
-
loadMatchingRuleUses
Build a list of MatchingRuleUses read from the underlying storage for a list of specified schema names- Specified by:
loadMatchingRuleUsesin interfaceSchemaLoader- Parameters:
schemaNames- the schema names from which MatchingRuleUses are loaded- Returns:
- The list of loaded MatchingRuleUses
- Throws:
LdapException- if there are failures accessing MatchingRuleUses informationIOException- If we can't read the schemaObject
-
loadNameForms
Build a list of NameForms read from the underlying storage for a list of specified schema names- Specified by:
loadNameFormsin interfaceSchemaLoader- Parameters:
schemaNames- the schema names from which NameForms are loaded- Returns:
- The list of loaded NameForms
- Throws:
LdapException- if there are failures accessing NameForms informationIOException- If we can't read the schemaObject
-
loadNormalizers
Build a list of Normalizers read from the underlying storage for a list of specified schema names- Specified by:
loadNormalizersin interfaceSchemaLoader- Parameters:
schemaNames- the schema names from which Normalizers are loaded- Returns:
- The list of loaded Normalizers
- Throws:
LdapException- if there are failures accessing Normalizer informationIOException- If we can't read the schemaObject
-
loadObjectClasses
Build a list of ObjectClasses read from the underlying storage for a list of specified schema names- Specified by:
loadObjectClassesin interfaceSchemaLoader- Parameters:
schemaNames- the schema names from which ObjectClasses are loaded- Returns:
- The list of loaded ObjectClasses
- Throws:
LdapException- if there are failures accessing ObjectClasses informationIOException- If we can't read the schemaObject
-
loadSyntaxes
Build a list of Syntaxes read from the underlying storage for a list of specified schema names- Specified by:
loadSyntaxesin interfaceSchemaLoader- Parameters:
schemaNames- the schema names from which Syntaxes are loaded- Returns:
- The list of loaded Syntaxes
- Throws:
LdapException- if there are failures accessing Syntax informationIOException- If we can't read the schemaObject
-
loadSyntaxCheckers
Build a list of SyntaxCheckers read from the underlying storage for a list of specified schema names- Specified by:
loadSyntaxCheckersin interfaceSchemaLoader- Parameters:
schemaNames- the schema names from which SyntaxCheckers are loaded- Returns:
- A list of loaded SyntaxCheckers
- Throws:
LdapException- if there are failures accessing SyntaxChecker informationIOException- If we had some issues loading the schemasIOException- If we can't read the schemaObject
-
isRelaxed
public boolean isRelaxed()Is the schemaLoader in relaxed mode?- Specified by:
isRelaxedin interfaceSchemaLoader- Returns:
trueif the SchemaLoader is in RELAXED mode
-
isStrict
public boolean isStrict()Is the schemaLoader in strict mode?- Specified by:
isStrictin interfaceSchemaLoader- Returns:
trueif the SchemaLoader is in STRICT mode
-
setRelaxed
public void setRelaxed(boolean relaxed) Set the SchemzLoader in STRICT or RELAXED mode.- Specified by:
setRelaxedin interfaceSchemaLoader- Parameters:
relaxed- iftrue, the SchemaLoader will be in relaxed mode, otherwise it will be in strict mode (the default)
-