|
||||||||||
| 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 Map<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 |
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 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(String originalSchemaName,
String newSchemaName)
Modify all the SchemaObject 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 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 Map<Integer,DITStructureRule> byRuleId
| Constructor Detail |
|---|
public DefaultDITStructureRuleRegistry()
| Method Detail |
|---|
public boolean contains(int ruleId)
contains in interface DITStructureRuleRegistrypublic Iterator<DITStructureRule> iterator()
iterator in interface Iterable<DITStructureRule>iterator in interface DITStructureRuleRegistryiterator in interface SchemaObjectRegistry<DITStructureRule>iterator in class DefaultSchemaObjectRegistry<DITStructureRule>public Iterator<Integer> ruleIdIterator()
ruleIdIterator in interface DITStructureRuleRegistry
public String getSchemaName(int ruleId)
throws NamingException
getSchemaName in interface DITStructureRuleRegistryNamingException - if the schema object does not exist
public void register(DITStructureRule ditStructureRule)
throws NamingException
register in interface DITStructureRuleRegistryregister in interface SchemaObjectRegistry<DITStructureRule>register in class DefaultSchemaObjectRegistry<DITStructureRule>ditStructureRule - the SchemaObject to register
NamingException - if the SchemaObject is already registered or
the registration operation is not supported
public DITStructureRule lookup(int ruleId)
throws NamingException
lookup in interface DITStructureRuleRegistryruleId - the rule identifier for the DITStructureRule
NamingException - if the DITStructureRule does not exist
public void unregister(int ruleId)
throws NamingException
unregister in interface DITStructureRuleRegistryruleId - the rule identifier for the DITStructureRule to unregister
NamingException - if no such DITStructureRule existspublic void unregisterSchemaElements(String schemaName)
unregisterSchemaElements in interface DITStructureRuleRegistryunregisterSchemaElements in interface SchemaObjectRegistry<DITStructureRule>unregisterSchemaElements in class DefaultSchemaObjectRegistry<DITStructureRule>schemaName - the name of the schema whose SchemaObjects will be removed from
public void renameSchema(String originalSchemaName,
String newSchemaName)
renameSchema in interface DITStructureRuleRegistryrenameSchema in interface SchemaObjectRegistry<DITStructureRule>renameSchema in class DefaultSchemaObjectRegistry<DITStructureRule>originalSchemaName - The original Schema namenewSchemaName - The new Schema namepublic DefaultDITStructureRuleRegistry copy()
copy in interface DITStructureRuleRegistrycopy in interface SchemaObjectRegistry<DITStructureRule>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||