|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.schema.registries.DefaultSchemaObjectRegistry<DITStructureRule>
org.apache.directory.shared.ldap.schema.registries.DefaultDITStructureRuleRegistry
public class DefaultDITStructureRuleRegistry
A DITStructureRule registry's service default implementation.
Field Summary | |
---|---|
protected java.util.Map<java.lang.Integer,DITStructureRule> |
byRuleId
a map of DITStructureRule looked up by RuleId |
Fields inherited from class org.apache.directory.shared.ldap.schema.registries.DefaultSchemaObjectRegistry |
---|
byName, oidRegistry, schemaObjectType |
Constructor Summary | |
---|---|
DefaultDITStructureRuleRegistry()
Creates a new default NormalizerRegistry instance. |
Method Summary | |
---|---|
boolean |
contains(int ruleId)
Checks to see if an DITStructureRule exists in the registry, by its ruleId. |
DefaultDITStructureRuleRegistry |
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 schema objects 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 SchemaObject with this registry. |
void |
renameSchema(java.lang.String originalSchemaName,
java.lang.String newSchemaName)
Modify all the SchemaObject 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 SchemaObjects defined for a specific schema from this registry. |
Methods inherited from class org.apache.directory.shared.ldap.schema.registries.DefaultSchemaObjectRegistry |
---|
clear, contains, copy, get, getOidByName, getSchemaName, getType, lookup, oidsIterator, size, toString, unregister, unregister |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.directory.shared.ldap.schema.registries.SchemaObjectRegistry |
---|
clear, contains, get, getOidByName, getSchemaName, getType, lookup, oidsIterator, size, unregister, unregister |
Field Detail |
---|
protected java.util.Map<java.lang.Integer,DITStructureRule> byRuleId
Constructor Detail |
---|
public DefaultDITStructureRuleRegistry()
Method Detail |
---|
public boolean contains(int ruleId)
contains
in interface DITStructureRuleRegistry
public java.util.Iterator<DITStructureRule> iterator()
iterator
in interface java.lang.Iterable<DITStructureRule>
iterator
in interface DITStructureRuleRegistry
iterator
in interface SchemaObjectRegistry<DITStructureRule>
iterator
in class DefaultSchemaObjectRegistry<DITStructureRule>
public java.util.Iterator<java.lang.Integer> ruleIdIterator()
ruleIdIterator
in interface DITStructureRuleRegistry
public java.lang.String getSchemaName(int ruleId) throws LdapException
getSchemaName
in interface DITStructureRuleRegistry
LdapException
- if the schema object does not existpublic void register(DITStructureRule ditStructureRule) throws LdapException
register
in interface DITStructureRuleRegistry
register
in interface SchemaObjectRegistry<DITStructureRule>
register
in class DefaultSchemaObjectRegistry<DITStructureRule>
ditStructureRule
- the SchemaObject to register
LdapException
- if the SchemaObject is already registered or
the registration operation is not supportedpublic DITStructureRule lookup(int ruleId) throws LdapException
lookup
in interface DITStructureRuleRegistry
ruleId
- the rule identifier for the DITStructureRule
LdapException
- if the DITStructureRule does not existpublic void unregister(int ruleId) throws LdapException
unregister
in interface DITStructureRuleRegistry
ruleId
- the rule identifier for the DITStructureRule to unregister
LdapException
- if no such DITStructureRule existspublic void unregisterSchemaElements(java.lang.String schemaName)
unregisterSchemaElements
in interface DITStructureRuleRegistry
unregisterSchemaElements
in interface SchemaObjectRegistry<DITStructureRule>
unregisterSchemaElements
in class DefaultSchemaObjectRegistry<DITStructureRule>
schemaName
- the name of the schema whose SchemaObjects will be removed frompublic void renameSchema(java.lang.String originalSchemaName, java.lang.String newSchemaName)
renameSchema
in interface DITStructureRuleRegistry
renameSchema
in interface SchemaObjectRegistry<DITStructureRule>
renameSchema
in class DefaultSchemaObjectRegistry<DITStructureRule>
originalSchemaName
- The original Schema namenewSchemaName
- The new Schema namepublic DefaultDITStructureRuleRegistry copy()
copy
in interface DITStructureRuleRegistry
copy
in interface SchemaObjectRegistry<DITStructureRule>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |