public interface SchemaLoader
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() |
Schema |
getSchema(String schemaName)
Gets a schema object based on it's name.
|
List<Entry> |
loadAttributeTypes(Schema... schemas)
Loads a set of schemas.
|
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(Schema... schemas)
Build a list of Comparators read from the underlying storage for
a list of specific schema.
|
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(Schema... schemas)
Build a list of DitContentRules read from the underlying storage for
a list of specific schema.
|
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(Schema... schemas)
Build a list of DitStructureRules read from the underlying storage for
a list of specific schema.
|
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(Schema... schemas)
Build a list of MatchingRules read from the underlying storage for
a list of specific schema
|
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(Schema... schemas)
Build a list of MatchingRuleUses read from the underlying storage for
a list of specific schema.
|
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(Schema... schemas)
Build a list of NameForms read from the underlying storage for
a list of specific schema.
|
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(Schema... schemas)
Build a list of Normalizers read from the underlying storage for
a list of specified schema
|
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(Schema... schemas)
Build a list of ObjectClasses read from the underlying storage for
a list of specific schema.
|
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(Schema... schemas)
Build a list of SyntaxCheckers read from the underlying storage for
a list of specified schema
|
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(Schema... schemas)
Build a list of Syntaxes read from the underlying storage for
a list of specified schema
|
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
|
void |
setListener(SchemaLoaderListener listener)
Sets listener used to notify of newly loaded schemas.
|
void setListener(SchemaLoaderListener listener)
listener
- the listener to notify (only one is enough for us)Schema getSchema(String schemaName)
schemaName
- the name of the schema to loadList<Entry> loadAttributeTypes(Schema... schemas) throws Exception
registries
- the registries to populate with these schemascheck
- tells if the Registries must be checked after having been loadedschemas
- the set of schemas to loadregistries
- the registry to load all enabled schemas intocheck
- tells if the Registries must be checked after having been loadedschema
- the schema to loadregistries
- the registries to populate with these schemasisDepLoad
- tells the loader if this load request is to satisfy a dependencyschemas
- the schemas from which AttributeTypes are loadedException
- if any kind of problems are encountered during the load
ListException
- if there are any failures
ListException
- if any kind of problems are encountered during the load
void load( Schema schema, Registries registries, boolean isDepLoad ) throws Exception;
/**
Build a list of AttributeTypes read from the underlying storage for
a list of specified schemaException
- if there are failures accessing AttributeType informationList<Entry> loadAttributeTypes(String... schemaNames) throws Exception
schemaNames
- the schema names from which AttributeTypes are loadedException
- if there are failures accessing AttributeType informationList<Entry> loadComparators(Schema... schemas) throws Exception
schemas
- the schemas from which Comparators are loadedException
- if there are failures accessing Comparator informationList<Entry> loadComparators(String... schemaNames) throws Exception
schemaNames
- the schema names from which Comparators are loadedException
- if there are failures accessing Comparator informationList<Entry> loadDitContentRules(Schema... schemas) throws Exception
schemas
- the schemas from which DitContentRules are loadedException
- if there are failures accessing DitContentRule informationList<Entry> loadDitContentRules(String... schemanames) throws Exception
schemaNames
- the schema names from which DitContentRules are loadedException
- if there are failures accessing DitContentRule informationList<Entry> loadDitStructureRules(Schema... schemas) throws Exception
schemas
- the schemas from which DitStructureRules are loadedException
- if there are failures accessing DitStructureRule informationList<Entry> loadDitStructureRules(String... schemanames) throws Exception
schemaNames
- the schema names from which DitStructureRules are loadedException
- if there are failures accessing DitStructureRule informationList<Entry> loadMatchingRules(Schema... schemas) throws Exception
schemas
- the schemas from which MatchingRules are loadedException
- if there are failures accessing MatchingRule informationList<Entry> loadMatchingRules(String... schemaNames) throws Exception
schemaNames
- the schema names from which MatchingRules are loadedException
- if there are failures accessing MatchingRule informationList<Entry> loadMatchingRuleUses(Schema... schemas) throws Exception
schemas
- the schemas from which MatchingRuleUses are loadedException
- if there are failures accessing MatchingRuleUse informationList<Entry> loadMatchingRuleUses(String... schemanames) throws Exception
schemaNames
- the schema names from which MatchingRuleUses are loadedException
- if there are failures accessing MatchingRuleUses informationList<Entry> loadNameForms(Schema... schemas) throws Exception
schemas
- the schemas from which NameForms are loadedException
- if there are failures accessing NameForm informationList<Entry> loadNameForms(String... schemanames) throws Exception
schemaNames
- the schema names from which NameForms are loadedException
- if there are failures accessing NameForms informationList<Entry> loadNormalizers(Schema... schemas) throws Exception
schemas
- the schemas from which Normalizers are loadedException
- if there are failures accessing Normalizer informationList<Entry> loadNormalizers(String... schemaNames) throws Exception
schemaNames
- the schema names from which Normalizers are loadedException
- if there are failures accessing Normalizer informationList<Entry> loadObjectClasses(Schema... schemas) throws Exception
schemas
- the schemas from which ObjectClasses are loadedException
- if there are failures accessing ObjectClass informationList<Entry> loadObjectClasses(String... schemaNames) throws Exception
schemaNames
- the schema names from which ObjectClasses are loadedException
- if there are failures accessing ObjectClasses informationList<Entry> loadSyntaxes(Schema... schemas) throws Exception
schemas
- the schemas from which Syntaxes are loadedException
- if there are failures accessing Syntax informationList<Entry> loadSyntaxes(String... schemaNames) throws Exception
schemaNames
- the schema names from which Syntaxes are loadedException
- if there are failures accessing Syntax informationList<Entry> loadSyntaxCheckers(Schema... schemas) throws Exception
schemas
- the schemas from which SyntaxCheckers are loadedException
- if there are failures accessing SyntaxChecker informationList<Entry> loadSyntaxCheckers(String... schemanames) throws Exception
schemaNames
- the schema names from which SyntaxCheckers are loadedException
- if there are failures accessing SyntaxChecker informationCollection<Schema> getAllEnabled() throws Exception
Exception
- TODOCollection<Schema> getAllSchemas() throws Exception
Exception
- TODOvoid addSchema(Schema schema)
void removeSchema(Schema schema)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.