|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.schema.registries.DefaultSchemaObjectRegistry<DitStructureRule>
org.apache.directory.api.ldap.model.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.api.ldap.model.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.api.ldap.model.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.api.ldap.model.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 DitStructureRuleRegistryruleId - the rule identifier of the DitStructureRule
public 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 LdapException
getSchemaName in interface DitStructureRuleRegistryruleId - the object identifier
LdapException - if the schema object does not exist
public void register(DitStructureRule ditStructureRule)
throws LdapException
register in interface DitStructureRuleRegistryregister 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 supported
public DitStructureRule lookup(int ruleId)
throws LdapException
lookup in interface DitStructureRuleRegistryruleId - the rule identifier for the DitStructureRule
LdapException - if the DitStructureRule does not exist
public void unregister(int ruleId)
throws LdapException
unregister in interface DitStructureRuleRegistryruleId - the rule identifier for the DitStructureRule to unregister
LdapException - 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 | |||||||||