public interface SchemaObjectRegistry<T extends SchemaObject>
| Modifier and Type | Method and Description |
|---|---|
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.
|
SchemaObjectRegistry<T> |
copy()
Copy a DefaultSchemaObjectRegistry.
|
T |
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<T> |
iterator()
Gets an iterator over the registered schema objects in the registry.
|
T |
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(T 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() |
T |
unregister(java.lang.String numericOid)
Removes the SchemaObject registered with this registry, using its
numeric OID.
|
T |
unregister(T schemaObject)
Removes the SchemaObject registered with this registry.
|
void |
unregisterSchemaElements(java.lang.String schemaName)
Unregisters all SchemaObjects defined for a specific schema from
this registry.
|
boolean contains(java.lang.String oid)
oid - the object identifier or name of the SchemaObjectjava.lang.String getSchemaName(java.lang.String oid)
throws LdapException
oid - the object identifier or the nameLdapException - if the schema object does not existT get(java.lang.String oid)
oid - The SchemaObject's OID we are looking forvoid renameSchema(java.lang.String originalSchemaName,
java.lang.String newSchemaName)
throws LdapException
originalSchemaName - The original Schema namenewSchemaName - The new Schema nameLdapException - if the schema object does not existjava.util.Iterator<T> iterator()
java.util.Iterator<java.lang.String> oidsIterator()
T lookup(java.lang.String oid) throws LdapException
oid - the object identifier or nameLdapException - if the SchemaObject does not existvoid register(T schemaObject) throws LdapException
schemaObject - the SchemaObject to registerLdapException - if the SchemaObject is already registered or
the registration operation is not supportedT unregister(java.lang.String numericOid) throws LdapException
numericOid - the numeric identifierLdapException - if the numeric identifier is invalidT unregister(T schemaObject) throws LdapException
schemaObject - the schemaObject to unregisterLdapException - if the schemaObject can't be unregistered is invalidvoid unregisterSchemaElements(java.lang.String schemaName)
throws LdapException
schemaName - the name of the schema whose SchemaObjects will be removed fromLdapExceptionjava.lang.String getOidByName(java.lang.String name)
throws LdapException
name - The name we are looking the oid forLdapException - If the OID can't be foundSchemaObjectRegistry<T> copy()
SchemaObjectType getType()
int size()
void clear()
throws LdapException
LdapException