|
||||||||||
| 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.ImmutableMatchingRuleUseRegistry
public class ImmutableMatchingRuleUseRegistry
An immutable wrapper of the MatchingRuleUse registry.
| Constructor Summary | |
|---|---|
ImmutableMatchingRuleUseRegistry(MatchingRuleUseRegistry matchingRuleUseRegistry)
Creates a new instance of ImmutableMatchingRuleUseRegistry. |
|
| Method Summary | |
|---|---|
void |
clear()
Clear the registry from all its content |
boolean |
contains(String oid)
Checks to see if an SchemaObject exists in the registry, by its OID or name. |
ImmutableMatchingRuleUseRegistry |
copy()
Copy the MatchingRuleUseRegistry |
MatchingRuleUse |
get(String oid)
Gets the SchemaObject associated with a given OID. |
String |
getOidByName(String name)
Gets the numericOid for a name/alias if one is associated. |
String |
getSchemaName(String oid)
Gets the name of the schema this schema object is associated with. |
SchemaObjectType |
getType()
|
Iterator<MatchingRuleUse> |
iterator()
Gets an iterator over the registered schema objects in the registry. |
MatchingRuleUse |
lookup(String oid)
Looks up a SchemaObject by its unique Object Identifier or by name. |
Iterator<String> |
oidsIterator()
Gets an iterator over the registered schema objects'OID in the registry. |
void |
register(MatchingRuleUse schemaObject)
Registers a new SchemaObject with this registry. |
void |
renameSchema(String originalSchemaName,
String newSchemaName)
Modify all the SchemaObject using a schemaName when this name changes. |
int |
size()
|
MatchingRuleUse |
unregister(MatchingRuleUse schemaObject)
Removes the SchemaObject registered with this registry. |
MatchingRuleUse |
unregister(String numericOid)
Removes the SchemaObject registered with this registry, using its numeric OID. |
void |
unregisterSchemaElements(String schemaName)
Unregisters all SchemaObjects defined for a specific schema from this registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImmutableMatchingRuleUseRegistry(MatchingRuleUseRegistry matchingRuleUseRegistry)
matchingRuleUseRegistry - The wrapped MatchingRuleUse registry| Method Detail |
|---|
public ImmutableMatchingRuleUseRegistry copy()
copy in interface MatchingRuleUseRegistrycopy in interface SchemaObjectRegistry<MatchingRuleUse>public int size()
size in interface SchemaObjectRegistry<MatchingRuleUse>public boolean contains(String oid)
contains in interface SchemaObjectRegistry<MatchingRuleUse>oid - the object identifier or name of the SchemaObject
public String getOidByName(String name)
throws LdapException
getOidByName in interface SchemaObjectRegistry<MatchingRuleUse>name - The name we are looking the oid for
LdapException - If the OID can't be found
public String getSchemaName(String oid)
throws LdapException
getSchemaName in interface SchemaObjectRegistry<MatchingRuleUse>oid - the object identifier or the name
LdapException - if the schema object does not existpublic SchemaObjectType getType()
getType in interface SchemaObjectRegistry<MatchingRuleUse>public Iterator<MatchingRuleUse> iterator()
iterator in interface Iterable<MatchingRuleUse>iterator in interface SchemaObjectRegistry<MatchingRuleUse>
public MatchingRuleUse lookup(String oid)
throws LdapException
lookup in interface SchemaObjectRegistry<MatchingRuleUse>oid - the object identifier or name
LdapException - if the SchemaObject does not existpublic Iterator<String> oidsIterator()
oidsIterator in interface SchemaObjectRegistry<MatchingRuleUse>
public void register(MatchingRuleUse schemaObject)
throws LdapException
register in interface SchemaObjectRegistry<MatchingRuleUse>schemaObject - the SchemaObject to register
LdapException - if the SchemaObject is already registered or
the registration operation is not supported
public void renameSchema(String originalSchemaName,
String newSchemaName)
throws LdapException
renameSchema in interface SchemaObjectRegistry<MatchingRuleUse>originalSchemaName - The original Schema namenewSchemaName - The new Schema name
LdapException - if the schema object does not exist
public MatchingRuleUse unregister(String numericOid)
throws LdapException
unregister in interface SchemaObjectRegistry<MatchingRuleUse>numericOid - the numeric identifier
LdapException - if the numeric identifier is invalid
public void unregisterSchemaElements(String schemaName)
throws LdapException
unregisterSchemaElements in interface SchemaObjectRegistry<MatchingRuleUse>schemaName - the name of the schema whose SchemaObjects will be removed from
LdapExceptionpublic MatchingRuleUse get(String oid)
get in interface SchemaObjectRegistry<MatchingRuleUse>oid - The SchemaObject's OID we are looking for
public void clear()
throws LdapException
clear in interface SchemaObjectRegistry<MatchingRuleUse>LdapException
public MatchingRuleUse unregister(MatchingRuleUse schemaObject)
throws LdapException
unregister in interface SchemaObjectRegistry<MatchingRuleUse>schemaObject - the schemaObject to unregister
LdapException - if the schemaObject can't be unregistered is invalid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||