public interface ObjectClassRegistry extends SchemaObjectRegistry<ObjectClass>, java.lang.Iterable<ObjectClass>
| Modifier and Type | Method and Description |
|---|---|
ObjectClassRegistry |
copy()
Copy the ObjectClassRegistry
|
java.util.Iterator<ObjectClass> |
descendants(java.lang.String ancestorId)
Get's an iterator over the set of descendant ObjectClasses for
some ancestor's name alias or their OID.
|
boolean |
hasDescendants(java.lang.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,
java.util.List<ObjectClass> ancestors)
Store the ObjectClass into a map associating an ObjectClass to its
descendants.
|
ObjectClass |
unregister(java.lang.String numericOid)
Removes the ObjectClass registered with this registry.
|
void |
unregisterDescendants(ObjectClass attributeType,
java.util.List<ObjectClass> ancestors)
Remove the ObjectClass from the map associating an ObjectClass to its
descendants.
|
clear, contains, get, getOidByName, getSchemaName, getType, iterator, lookup, oidsIterator, renameSchema, size, unregister, unregisterSchemaElementsboolean hasDescendants(java.lang.String ancestorId)
throws LdapException
ancestorId - the name alias or OID for an ObjectClassLdapException - if the ancestor ObjectClass cannot be
discerned from the ancestorId suppliedjava.util.Iterator<ObjectClass> descendants(java.lang.String ancestorId) throws LdapException
ancestorId - the name alias or OID for an ObjectClassLdapException - if the ancestor ObjectClass cannot be
discerned from the ancestorId suppliedvoid registerDescendants(ObjectClass objectClass, java.util.List<ObjectClass> ancestors) throws LdapException
objectClass - The ObjectClass to registerancestors - Its ancestorsLdapException - If something went wrongvoid unregisterDescendants(ObjectClass attributeType, java.util.List<ObjectClass> ancestors) throws LdapException
attributeType - The ObjectClass to unregisterancestors - its ancestorsLdapException - If something went wrongvoid register(ObjectClass objectClass) throws LdapException
register in interface SchemaObjectRegistry<ObjectClass>objectClass - the ObjectClass to registerLdapException - if the ObjectClass is already registered or
the registration operation is not supportedObjectClass unregister(java.lang.String numericOid) throws LdapException
unregister in interface SchemaObjectRegistry<ObjectClass>numericOid - the numeric identifierLdapException - if the numeric identifier is invalidObjectClassRegistry copy()
copy in interface SchemaObjectRegistry<ObjectClass>