|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DITStructureRuleRegistry
An DITStructureRule registry service interface.
| Method Summary | |
|---|---|
boolean |
contains(int ruleId)
Checks to see if an DITStructureRule exists in the registry, by its ruleId. |
DITStructureRuleRegistry |
copy()
Copy the DITStructureRuleRegistry |
String |
getSchemaName(int ruleId)
Gets the name of the schema this schema object is associated with. |
Iterator<DITStructureRule> |
iterator()
Gets an iterator over the registered descriptions in the registry. |
DITStructureRule |
lookup(int ruleId)
Looks up an dITStructureRule by its unique Object IDentifier or by its name. |
void |
register(DITStructureRule ditStructureRule)
Registers a new DITStructureRule with this registry. |
void |
renameSchema(String originalSchemaName,
String newSchemaName)
Modify all the DITStructureRule using a schemaName when this name changes. |
Iterator<Integer> |
ruleIdIterator()
Gets an iterator over the registered ruleId in the registry. |
void |
unregister(int ruleId)
Unregisters a DITStructureRule using it's rule identifier. |
void |
unregisterSchemaElements(String schemaName)
Unregisters all DITStructureRules defined for a specific schema from this registry. |
| Methods inherited from interface org.apache.directory.shared.ldap.schema.registries.SchemaObjectRegistry |
|---|
clear, contains, get, getOidByName, getSchemaName, getType, lookup, oidsIterator, size, unregister, unregister |
| Method Detail |
|---|
boolean contains(int ruleId)
oid - the object identifier or name of the DITStructureRule
Iterator<DITStructureRule> iterator()
iterator in interface Iterable<DITStructureRule>iterator in interface SchemaObjectRegistry<DITStructureRule>Iterator<Integer> ruleIdIterator()
String getSchemaName(int ruleId)
throws NamingException
id - the object identifier or the name
NamingException - if the schema object does not exist
void register(DITStructureRule ditStructureRule)
throws NamingException
register in interface SchemaObjectRegistry<DITStructureRule>ditStructureRule - the DITStructureRule to register
NamingException - if the DITStructureRule is already registered or
the registration operation is not supported
DITStructureRule lookup(int ruleId)
throws NamingException
ruleId - the rule identifier for the DITStructureRule
NamingException - if the DITStructureRule does not exist
void unregister(int ruleId)
throws NamingException
ruleId - the rule identifier for the DITStructureRule to unregister
NamingException - if no such DITStructureRule exists
void unregisterSchemaElements(String schemaName)
throws NamingException
unregisterSchemaElements in interface SchemaObjectRegistry<DITStructureRule>schemaName - the name of the schema whose syntaxCheckers will be removed from
NamingException - if no such SchemaElement exists
void renameSchema(String originalSchemaName,
String newSchemaName)
throws NamingException
renameSchema in interface SchemaObjectRegistry<DITStructureRule>originalSchemaName - The original Schema namenewSchemaName - The new Schema name
NamingException - if the schema can't be renamedDITStructureRuleRegistry copy()
copy in interface SchemaObjectRegistry<DITStructureRule>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||