public interface ObjectClassRegistry extends SchemaObjectRegistry<ObjectClass>, Iterable<ObjectClass>
Modifier and Type | Method and Description |
---|---|
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.
|
clear, contains, get, getOidByName, getSchemaName, getType, iterator, lookup, oidsIterator, renameSchema, size, unregister, unregisterSchemaElements
boolean hasDescendants(String ancestorId) throws LdapException
ancestorId
- the name alias or OID for an ObjectClassLdapException
- if the ancestor ObjectClass cannot be
discerned from the ancestorId suppliedIterator<ObjectClass> descendants(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, List<ObjectClass> ancestors) throws LdapException
objectClass
- The ObjectClass to registerancestors
- Its ancestorsLdapException
- If something went wrongvoid unregisterDescendants(ObjectClass attributeType, 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(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>
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.