public abstract class AbstractSchemaLoader extends Object implements SchemaLoader
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Schema> |
schemaMap
A map of all available schema names to schema objects.
|
| Constructor and Description |
|---|
AbstractSchemaLoader() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSchema(Schema schema)
Add a new schema to the schema's list
|
Collection<Schema> |
getAllEnabled() |
Collection<Schema> |
getAllSchemas() |
protected Schema |
getSchema(Entry entry)
Gets the schema.
|
Schema |
getSchema(String schemaName)
Gets a schema object based on it's name.
|
List<Entry> |
loadAttributeTypes(String... schemaNames)
Build a list of AttributeTypes read from the underlying storage for
a list of specific schema, using their name
|
List<Entry> |
loadComparators(String... schemaNames)
Build a list of Comparators read from the underlying storage for
a list of specific schema, using their name
|
List<Entry> |
loadDitContentRules(String... schemaNames)
Build a list of DitContentRules read from the underlying storage for
a list of specified schema names
|
List<Entry> |
loadDitStructureRules(String... schemaNames)
Build a list of DitStructureRules read from the underlying storage for
a list of specified schema names
|
List<Entry> |
loadMatchingRules(String... schemaNames)
Build a list of MatchingRules read from the underlying storage for
a list of specific schema, using their name
|
List<Entry> |
loadMatchingRuleUses(String... schemaNames)
Build a list of MatchingRuleUses read from the underlying storage for
a list of specified schema names
|
List<Entry> |
loadNameForms(String... schemaNames)
Build a list of NameForms read from the underlying storage for
a list of specified schema names
|
List<Entry> |
loadNormalizers(String... schemaNames)
Build a list of Normalizers read from the underlying storage for
a list of specified schema names
|
List<Entry> |
loadObjectClasses(String... schemaNames)
Build a list of ObjectClasses read from the underlying storage for
a list of specified schema names
|
List<Entry> |
loadSyntaxCheckers(String... schemaNames)
Build a list of SyntaxCheckers read from the underlying storage for
a list of specified schema names
|
List<Entry> |
loadSyntaxes(String... schemaNames)
Build a list of Syntaxes read from the underlying storage for
a list of specified schema names
|
void |
removeSchema(Schema schema)
Remove a schema from the schema's list
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloadAttributeTypes, loadComparators, loadDitContentRules, loadDitStructureRules, loadMatchingRules, loadMatchingRuleUses, loadNameForms, loadNormalizers, loadObjectClasses, loadSyntaxCheckers, loadSyntaxespublic final Collection<Schema> getAllEnabled() throws Exception
getAllEnabled in interface SchemaLoaderException - TODOpublic final Collection<Schema> getAllSchemas() throws Exception
getAllSchemas in interface SchemaLoaderException - TODOpublic Schema getSchema(String schemaName)
getSchema in interface SchemaLoaderschemaName - the name of the schema to loadpublic void addSchema(Schema schema)
addSchema in interface SchemaLoaderpublic void removeSchema(Schema schema)
removeSchema in interface SchemaLoaderprotected Schema getSchema(Entry entry) throws Exception
entry - the entryException - the exceptionpublic List<Entry> loadAttributeTypes(String... schemaNames) throws Exception
loadAttributeTypes in interface SchemaLoaderschemaNames - the schema names from which AttributeTypes are loadedException - if there are failures accessing AttributeType informationpublic List<Entry> loadComparators(String... schemaNames) throws Exception
loadComparators in interface SchemaLoaderschemaNames - the schema names from which Comparators are loadedException - if there are failures accessing Comparator informationpublic List<Entry> loadDitContentRules(String... schemaNames) throws Exception
loadDitContentRules in interface SchemaLoaderschemaNames - the schema names from which DitContentRules are loadedException - if there are failures accessing DitContentRule informationpublic List<Entry> loadDitStructureRules(String... schemaNames) throws Exception
loadDitStructureRules in interface SchemaLoaderschemaNames - the schema names from which DitStructureRules are loadedException - if there are failures accessing DitStructureRule informationpublic List<Entry> loadMatchingRules(String... schemaNames) throws Exception
loadMatchingRules in interface SchemaLoaderschemaNames - the schema names from which MatchingRules are loadedException - if there are failures accessing MatchingRule informationpublic List<Entry> loadMatchingRuleUses(String... schemaNames) throws Exception
loadMatchingRuleUses in interface SchemaLoaderschemaNames - the schema names from which MatchingRuleUses are loadedException - if there are failures accessing MatchingRuleUses informationpublic List<Entry> loadNameForms(String... schemaNames) throws Exception
loadNameForms in interface SchemaLoaderschemaNames - the schema names from which NameForms are loadedException - if there are failures accessing NameForms informationpublic List<Entry> loadNormalizers(String... schemaNames) throws Exception
loadNormalizers in interface SchemaLoaderschemaNames - the schema names from which Normalizers are loadedException - if there are failures accessing Normalizer informationpublic List<Entry> loadObjectClasses(String... schemaNames) throws Exception
loadObjectClasses in interface SchemaLoaderschemaNames - the schema names from which ObjectClasses are loadedException - if there are failures accessing ObjectClasses informationpublic List<Entry> loadSyntaxes(String... schemaNames) throws Exception
loadSyntaxes in interface SchemaLoaderschemaNames - the schema names from which Syntaxes are loadedException - if there are failures accessing Syntax informationpublic List<Entry> loadSyntaxCheckers(String... schemaNames) throws Exception
loadSyntaxCheckers in interface SchemaLoaderschemaNames - the schema names from which SyntaxCheckers are loadedException - if there are failures accessing SyntaxChecker informationCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.