|
||||||||||
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.ImmutableMatchingRuleRegistry
public class ImmutableMatchingRuleRegistry
An immutable wrapper of the MatchingRule registry.
Constructor Summary | |
---|---|
ImmutableMatchingRuleRegistry(MatchingRuleRegistry matchingRuleRegistry)
Creates a new instance of ImmutableMatchingRuleRegistry. |
Method Summary | |
---|---|
void |
clear()
Clear the registry from all its content |
boolean |
contains(java.lang.String oid)
Checks to see if an SchemaObject exists in the registry, by its OID or name. |
ImmutableMatchingRuleRegistry |
copy()
Copy the MatchingRuleRegistry |
SchemaObject |
get(java.lang.String oid)
Gets the SchemaObject associated with a given OID. |
java.lang.String |
getOidByName(java.lang.String name)
Gets the numericOid for a name/alias if one is associated. |
java.lang.String |
getSchemaName(java.lang.String oid)
Gets the name of the schema this schema object is associated with. |
SchemaObjectType |
getType()
|
java.util.Iterator<MatchingRule> |
iterator()
Gets an iterator over the registered schema objects in the registry. |
MatchingRule |
lookup(java.lang.String oid)
Looks up a SchemaObject by its unique Object Identifier or by name. |
java.util.Iterator<java.lang.String> |
oidsIterator()
Gets an iterator over the registered schema objects'OID in the registry. |
void |
register(MatchingRule schemaObject)
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. |
int |
size()
|
MatchingRule |
unregister(MatchingRule schemaObject)
Removes the SchemaObject registered with this registry. |
MatchingRule |
unregister(java.lang.String numericOid)
Removes the SchemaObject registered with this registry, using its numeric OID. |
void |
unregisterSchemaElements(java.lang.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 ImmutableMatchingRuleRegistry(MatchingRuleRegistry matchingRuleRegistry)
matchingRuleRegistry
- The wrapped MatchingRule registryMethod Detail |
---|
public ImmutableMatchingRuleRegistry copy()
copy
in interface MatchingRuleRegistry
copy
in interface SchemaObjectRegistry<MatchingRule>
public int size()
size
in interface SchemaObjectRegistry<MatchingRule>
public boolean contains(java.lang.String oid)
contains
in interface SchemaObjectRegistry<MatchingRule>
oid
- the object identifier or name of the SchemaObject
public java.lang.String getOidByName(java.lang.String name) throws LdapException
getOidByName
in interface SchemaObjectRegistry<MatchingRule>
name
- The name we are looking the oid for
LdapException
- If the OID can't be foundpublic java.lang.String getSchemaName(java.lang.String oid) throws LdapException
getSchemaName
in interface SchemaObjectRegistry<MatchingRule>
LdapException
- if the schema object does not existpublic SchemaObjectType getType()
getType
in interface SchemaObjectRegistry<MatchingRule>
public java.util.Iterator<MatchingRule> iterator()
iterator
in interface java.lang.Iterable<MatchingRule>
iterator
in interface SchemaObjectRegistry<MatchingRule>
public MatchingRule lookup(java.lang.String oid) throws LdapException
lookup
in interface SchemaObjectRegistry<MatchingRule>
oid
- the object identifier or name
LdapException
- if the SchemaObject does not existpublic java.util.Iterator<java.lang.String> oidsIterator()
oidsIterator
in interface SchemaObjectRegistry<MatchingRule>
public void register(MatchingRule schemaObject) throws LdapException
register
in interface SchemaObjectRegistry<MatchingRule>
schemaObject
- the SchemaObject to register
LdapException
- if the SchemaObject is already registered or
the registration operation is not supportedpublic void renameSchema(java.lang.String originalSchemaName, java.lang.String newSchemaName) throws LdapException
renameSchema
in interface SchemaObjectRegistry<MatchingRule>
originalSchemaName
- The original Schema namenewSchemaName
- The new Schema name
LdapException
- if the schema object does not existpublic MatchingRule unregister(java.lang.String numericOid) throws LdapException
unregister
in interface SchemaObjectRegistry<MatchingRule>
numericOid
- the numeric identifier
LdapException
- if the numeric identifier is invalidpublic void unregisterSchemaElements(java.lang.String schemaName) throws LdapException
unregisterSchemaElements
in interface SchemaObjectRegistry<MatchingRule>
schemaName
- the name of the schema whose SchemaObjects will be removed from
LdapException
public SchemaObject get(java.lang.String oid)
get
in interface SchemaObjectRegistry<MatchingRule>
oid
- The SchemaObject's OID we are looking for
public void clear() throws LdapException
clear
in interface SchemaObjectRegistry<MatchingRule>
LdapException
public MatchingRule unregister(MatchingRule schemaObject) throws LdapException
unregister
in interface SchemaObjectRegistry<MatchingRule>
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 |