|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.schema.registries.AbstractSchemaLoader
public abstract class AbstractSchemaLoader
An abstract class with a utility method and setListener() implemented.
| Field Summary | |
|---|---|
protected SchemaLoaderListener |
listener
The listener. |
protected Map<String,Schema> |
schemaMap
A map of all available schema names to schema objects. |
| Constructor Summary | |
|---|---|
AbstractSchemaLoader()
|
|
| Method Summary | |
|---|---|
void |
addSchema(Schema schema)
Add a new schema to the schema's list |
Collection<Schema> |
getAllEnabled()
|
Collection<Schema> |
getAllSchemas()
|
Object |
getDao()
|
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 |
protected void |
notifyListenerOrRegistries(Schema schema,
SchemaManager schemaManager)
Notify listener or registries. |
void |
removeSchema(Schema schema)
Remove a schema from the schema's list |
void |
setListener(SchemaLoaderListener listener)
Sets listener used to notify of newly loaded schemas. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.directory.api.ldap.model.schema.registries.SchemaLoader |
|---|
loadAttributeTypes, loadComparators, loadDitContentRules, loadDitStructureRules, loadMatchingRules, loadMatchingRuleUses, loadNameForms, loadNormalizers, loadObjectClasses, loadSyntaxCheckers, loadSyntaxes |
| Field Detail |
|---|
protected SchemaLoaderListener listener
protected final Map<String,Schema> schemaMap
| Constructor Detail |
|---|
public AbstractSchemaLoader()
| Method Detail |
|---|
public void setListener(SchemaLoaderListener listener)
setListener in interface SchemaLoaderlistener - the listener to notify (only one is enough for us)
protected final void notifyListenerOrRegistries(Schema schema,
SchemaManager schemaManager)
schema - the schemaregistries - the registries
public final Collection<Schema> getAllEnabled()
throws Exception
getAllEnabled in interface SchemaLoaderException - TODO
public 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 load
public void addSchema(Schema schema)
addSchema in interface SchemaLoaderpublic void removeSchema(Schema schema)
removeSchema in interface SchemaLoader
protected Schema getSchema(Entry entry)
throws Exception
entry - the entry
Exception - the exceptionpublic Object getDao()
public List<Entry> loadAttributeTypes(String... schemaNames)
throws Exception
loadAttributeTypes in interface SchemaLoaderschemaNames - the schema names from which AttributeTypes are loaded
Exception - if there are failures accessing AttributeType information
public List<Entry> loadComparators(String... schemaNames)
throws Exception
loadComparators in interface SchemaLoaderschemaNames - the schema names from which Comparators are loaded
Exception - if there are failures accessing Comparator information
public List<Entry> loadDitContentRules(String... schemaNames)
throws Exception
loadDitContentRules in interface SchemaLoaderschemaNames - the schema names from which DitContentRules are loaded
Exception - if there are failures accessing DitContentRule information
public List<Entry> loadDitStructureRules(String... schemaNames)
throws Exception
loadDitStructureRules in interface SchemaLoaderschemaNames - the schema names from which DitStructureRules are loaded
Exception - if there are failures accessing DitStructureRule information
public List<Entry> loadMatchingRules(String... schemaNames)
throws Exception
loadMatchingRules in interface SchemaLoaderschemaNames - the schema names from which MatchingRules are loaded
Exception - if there are failures accessing MatchingRule information
public List<Entry> loadMatchingRuleUses(String... schemaNames)
throws Exception
loadMatchingRuleUses in interface SchemaLoaderschemaNames - the schema names from which MatchingRuleUses are loaded
Exception - if there are failures accessing MatchingRuleUses information
public List<Entry> loadNameForms(String... schemaNames)
throws Exception
loadNameForms in interface SchemaLoaderschemaNames - the schema names from which NameForms are loaded
Exception - if there are failures accessing NameForms information
public List<Entry> loadNormalizers(String... schemaNames)
throws Exception
loadNormalizers in interface SchemaLoaderschemaNames - the schema names from which Normalizers are loaded
Exception - if there are failures accessing Normalizer information
public List<Entry> loadObjectClasses(String... schemaNames)
throws Exception
loadObjectClasses in interface SchemaLoaderschemaNames - the schema names from which ObjectClasses are loaded
Exception - if there are failures accessing ObjectClasses information
public List<Entry> loadSyntaxes(String... schemaNames)
throws Exception
loadSyntaxes in interface SchemaLoaderschemaNames - the schema names from which Syntaxes are loaded
Exception - if there are failures accessing Syntax information
public List<Entry> loadSyntaxCheckers(String... schemaNames)
throws Exception
loadSyntaxCheckers in interface SchemaLoaderschemaNames - the schema names from which SyntaxCheckers are loaded
Exception - if there are failures accessing SyntaxChecker information
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||