Interface SchemaLoader
- All Known Implementing Classes:
AbstractSchemaLoader
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a new schema to the schema's listGet the list of enabled schemasGet the list of all schemasGets a schema object based on it's name.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 nameloadAttributeTypes(Schema... schemas) Build a list of AttributeTypes read from the underlying storage for a list of specified schemaloadComparators(String... schemaNames) Build a list of Comparators read from the underlying storage for a list of specific schema, using their nameloadComparators(Schema... schemas) Build a list of Comparators read from the underlying storage for a list of specific schema.loadDitContentRules(String... schemaNames) Build a list of DitContentRules read from the underlying storage for a list of specified schema namesloadDitContentRules(Schema... schemas) Build a list of DitContentRules read from the underlying storage for a list of specific schema.loadDitStructureRules(String... schemaNames) Build a list of DitStructureRules read from the underlying storage for a list of specified schema namesloadDitStructureRules(Schema... schemas) Build a list of DitStructureRules read from the underlying storage for a list of specific schema.loadMatchingRules(String... schemaNames) Build a list of MatchingRules read from the underlying storage for a list of specific schema, using their nameloadMatchingRules(Schema... schemas) Build a list of MatchingRules read from the underlying storage for a list of specific schemaloadMatchingRuleUses(String... schemaNames) Build a list of MatchingRuleUses read from the underlying storage for a list of specified schema namesloadMatchingRuleUses(Schema... schemas) Build a list of MatchingRuleUses read from the underlying storage for a list of specific schema.loadNameForms(String... schemaNames) Build a list of NameForms read from the underlying storage for a list of specified schema namesloadNameForms(Schema... schemas) Build a list of NameForms read from the underlying storage for a list of specific schema.loadNormalizers(String... schemaNames) Build a list of Normalizers read from the underlying storage for a list of specified schema namesloadNormalizers(Schema... schemas) Build a list of Normalizers read from the underlying storage for a list of specified schemaloadObjectClasses(String... schemaNames) Build a list of ObjectClasses read from the underlying storage for a list of specified schema namesloadObjectClasses(Schema... schemas) Build a list of ObjectClasses read from the underlying storage for a list of specific schema.loadSyntaxCheckers(String... schemaNames) Build a list of SyntaxCheckers read from the underlying storage for a list of specified schema namesloadSyntaxCheckers(Schema... schemas) Build a list of SyntaxCheckers read from the underlying storage for a list of specified schemaloadSyntaxes(String... schemaNames) Build a list of Syntaxes read from the underlying storage for a list of specified schema namesloadSyntaxes(Schema... schemas) Build a list of Syntaxes read from the underlying storage for a list of specified schemavoidremoveSchema(Schema schema) Remove a schema from the schema's listvoidsetRelaxed(boolean relaxed) Set the SchemzLoader in STRICT or RELAXED mode.
-
Method Details
-
getSchema
-
loadAttributeTypes
Build a list of AttributeTypes read from the underlying storage for a list of specified schema- Parameters:
schemas- the schemas 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
-
loadAttributeTypes
Build a list of AttributeTypes read from the underlying storage for a list of specific schema, using their name- 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.- Parameters:
schemas- the schemas 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
-
loadComparators
Build a list of Comparators read from the underlying storage for a list of specific schema, using their name- 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 specific schema.- Parameters:
schemas- the schemas 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
-
loadDitContentRules
Build a list of DitContentRules read from the underlying storage for a list of specified schema names- 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 specific schema.- Parameters:
schemas- the schemas 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
-
loadDitStructureRules
Build a list of DitStructureRules read from the underlying storage for a list of specified schema names- 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- Parameters:
schemas- the schemas 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
-
loadMatchingRules
Build a list of MatchingRules read from the underlying storage for a list of specific schema, using their name- 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 specific schema.- Parameters:
schemas- the schemas from which MatchingRuleUses are loaded- Returns:
- The list of loaded MatchingRuleUses
- Throws:
LdapException- if there are failures accessing MatchingRuleUse 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- 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 specific schema.- Parameters:
schemas- the schemas from which NameForms are loaded- Returns:
- The list of loaded NameForms
- Throws:
LdapException- if there are failures accessing NameForm 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- 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- Parameters:
schemas- the schemas 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
-
loadNormalizers
Build a list of Normalizers read from the underlying storage for a list of specified schema names- 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 specific schema.- Parameters:
schemas- the schemas from which ObjectClasses are loaded- Returns:
- The list of loaded ObjectClasses
- Throws:
LdapException- if there are failures accessing ObjectClass 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- 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- Parameters:
schemas- the schemas 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
-
loadSyntaxes
Build a list of Syntaxes read from the underlying storage for a list of specified schema names- 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- Parameters:
schemas- the schemas from which SyntaxCheckers are loaded- Returns:
- The list of loaded SyntaxeCheckers
- Throws:
LdapException- if there are failures accessing SyntaxChecker 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- 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
-
getAllEnabled
Collection<Schema> getAllEnabled()Get the list of enabled schemas- Returns:
- the list of enabled schemas
-
getAllSchemas
-
addSchema
Add a new schema to the schema's list- Parameters:
schema- The schema to add
-
removeSchema
Remove a schema from the schema's list- Parameters:
schema- The schema to remove
-
isRelaxed
boolean isRelaxed()Is the schemaLoader in relaxed mode?- Returns:
trueif the SchemaLoader is in RELAXED mode
-
isStrict
boolean isStrict()Is the schemaLoader in strict mode?- Returns:
trueif the SchemaLoader is in STRICT mode
-
setRelaxed
void setRelaxed(boolean relaxed) Set the SchemzLoader in STRICT or RELAXED mode.- Parameters:
relaxed- iftrue, the SchemaLoader will be in relaxed mode, otherwise it will be in strict mode (the default)
-