|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectClassRegistry
ObjectClass registry service interface.
| Method Summary | |
|---|---|
ObjectClassRegistry |
copy()
Copy the ObjectClassRegistry |
Iterator<ObjectClass> |
descendants(String ancestorId)
Get's an iterator over the set of descendant ObjectClasses for some ancestor's name alias or their OID. |
boolean |
hasDescendants(String ancestorId)
Quick lookup to see if an objectClass has descendants. |
void |
register(ObjectClass objectClass)
Registers a new ObjectClass with this registry. |
void |
registerDescendants(ObjectClass objectClass,
List<ObjectClass> ancestors)
Store the ObjectClass into a map associating an ObjectClass to its descendants. |
ObjectClass |
unregister(String numericOid)
Removes the ObjectClass registered with this registry. |
void |
unregisterDescendants(ObjectClass attributeType,
List<ObjectClass> ancestors)
Remove the ObjectClass from the map associating an ObjectClass to its descendants. |
| Methods inherited from interface org.apache.directory.api.ldap.model.schema.registries.SchemaObjectRegistry |
|---|
clear, contains, get, getOidByName, getSchemaName, getType, iterator, lookup, oidsIterator, renameSchema, size, unregister, unregisterSchemaElements |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
boolean hasDescendants(String ancestorId)
throws LdapException
ancestorId - the name alias or OID for an ObjectClass
LdapException - if the ancestor ObjectClass cannot be
discerned from the ancestorId supplied
Iterator<ObjectClass> descendants(String ancestorId)
throws LdapException
ancestorId - the name alias or OID for an ObjectClass
LdapException - if the ancestor ObjectClass cannot be
discerned from the ancestorId supplied
void registerDescendants(ObjectClass objectClass,
List<ObjectClass> ancestors)
throws LdapException
objectClass - The ObjectClass to registerancestors - Its ancestors
LdapException - If something went wrong
void unregisterDescendants(ObjectClass attributeType,
List<ObjectClass> ancestors)
throws LdapException
attributeType - The ObjectClass to unregisterancestors - its ancestors
LdapException - If something went wrong
void register(ObjectClass objectClass)
throws LdapException
register in interface SchemaObjectRegistry<ObjectClass>objectClass - the ObjectClass to register
LdapException - if the ObjectClass is already registered or
the registration operation is not supported
ObjectClass unregister(String numericOid)
throws LdapException
unregister in interface SchemaObjectRegistry<ObjectClass>numericOid - the numeric identifier
LdapException - if the numeric identifier is invalidObjectClassRegistry copy()
copy in interface SchemaObjectRegistry<ObjectClass>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||