|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SchemaObjectRegistry<T extends SchemaObject>
Common schema object registry interface.
| 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. |
SchemaObjectRegistry<T> |
copy()
Copy a DefaultSchemaObjectRegistry. |
T |
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<T> |
iterator()
Gets an iterator over the registered schema objects in the registry. |
T |
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(T 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()
|
T |
unregister(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(String schemaName)
Unregisters all SchemaObjects defined for a specific schema from this registry. |
| Method Detail |
|---|
boolean contains(String oid)
oid - the object identifier or name of the SchemaObject
String getSchemaName(String oid)
throws LdapException
oid - the object identifier or the name
LdapException - if the schema object does not existT get(String oid)
oid - The SchemaObject's OID we are looking for
void renameSchema(String originalSchemaName,
String newSchemaName)
throws LdapException
originalSchemaName - The original Schema namenewSchemaName - The new Schema name
LdapException - if the schema object does not existIterator<T> iterator()
Iterator<String> oidsIterator()
T lookup(String oid)
throws LdapException
oid - the object identifier or name
LdapException - if the SchemaObject does not exist
void register(T schemaObject)
throws LdapException
schemaObject - the SchemaObject to register
LdapException - if the SchemaObject is already registered or
the registration operation is not supported
T unregister(String numericOid)
throws LdapException
numericOid - the numeric identifier
LdapException - if the numeric identifier is invalid
T unregister(T schemaObject)
throws LdapException
schemaObject - the schemaObject to unregister
LdapException - if the schemaObject can't be unregistered is invalid
void unregisterSchemaElements(String schemaName)
throws LdapException
schemaName - the name of the schema whose SchemaObjects will be removed from
LdapException
String getOidByName(String name)
throws LdapException
name - The name we are looking the oid for
LdapException - If the OID can't be foundSchemaObjectRegistry<T> copy()
SchemaObjectType getType()
int size()
void clear()
throws LdapException
LdapException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||