|
||||||||||
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 |
java.lang.String |
getSchemaName(int ruleId)
Gets the name of the schema this schema object is associated with. |
java.util.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(java.lang.String originalSchemaName,
java.lang.String newSchemaName)
Modify all the DITStructureRule using a schemaName when this name changes. |
java.util.Iterator<java.lang.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(java.lang.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
java.util.Iterator<DITStructureRule> iterator()
iterator
in interface java.lang.Iterable<DITStructureRule>
iterator
in interface SchemaObjectRegistry<DITStructureRule>
java.util.Iterator<java.lang.Integer> ruleIdIterator()
java.lang.String getSchemaName(int ruleId) throws LdapException
id
- the object identifier or the name
LdapException
- if the schema object does not existvoid 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 supportedDITStructureRule lookup(int ruleId) throws LdapException
ruleId
- the rule identifier for the DITStructureRule
LdapException
- if the DITStructureRule does not existvoid unregister(int ruleId) throws LdapException
ruleId
- the rule identifier for the DITStructureRule to unregister
LdapException
- if no such DITStructureRule existsvoid unregisterSchemaElements(java.lang.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 existsvoid renameSchema(java.lang.String originalSchemaName, java.lang.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 |