|
||||||||||
| 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.api.ldap.model.schema.registries.SchemaObjectRegistry |
|---|
clear, contains, get, getOidByName, getSchemaName, getType, lookup, oidsIterator, size, unregister, unregister |
| Method Detail |
|---|
boolean contains(int ruleId)
ruleId - the rule identifier of the DitStructureRule
Iterator<DitStructureRule> iterator()
iterator in interface Iterable<DitStructureRule>iterator in interface SchemaObjectRegistry<DitStructureRule>Iterator<Integer> ruleIdIterator()
String getSchemaName(int ruleId)
throws LdapException
ruleId - the object identifier
LdapException - if the schema object does not exist
void register(DitStructureRule ditStructureRule)
throws LdapException
register in interface SchemaObjectRegistry<DitStructureRule>ditStructureRule - the DitStructureRule to register
LdapException - if the DitStructureRule is already registered or
the registration operation is not supported
DitStructureRule lookup(int ruleId)
throws LdapException
ruleId - the rule identifier for the DitStructureRule
LdapException - if the DitStructureRule does not exist
void unregister(int ruleId)
throws LdapException
ruleId - the rule identifier for the DitStructureRule to unregister
LdapException - if no such DitStructureRule exists
void unregisterSchemaElements(String schemaName)
throws LdapException
unregisterSchemaElements in interface SchemaObjectRegistry<DitStructureRule>schemaName - the name of the schema whose syntaxCheckers will be removed from
LdapException - if no such SchemaElement exists
void renameSchema(String originalSchemaName,
String newSchemaName)
throws LdapException
renameSchema in interface SchemaObjectRegistry<DitStructureRule>originalSchemaName - The original Schema namenewSchemaName - The new Schema name
LdapException - 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 | |||||||||