|
||||||||||
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 |
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. |
Methods inherited from interface org.apache.directory.shared.ldap.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(java.lang.String ancestorId) throws LdapException
ancestorId
- the name alias or OID for an ObjectClass
LdapException
- 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 ObjectClass
LdapException
- if the ancestor ObjectClass cannot be
discerned from the ancestorId suppliedvoid registerDescendants(ObjectClass objectClass, java.util.List<ObjectClass> ancestors) throws LdapException
attributeType
- The ObjectClass to register
LdapException
- If something went wrongvoid unregisterDescendants(ObjectClass attributeType, java.util.List<ObjectClass> ancestors) throws LdapException
attributeType
- The ObjectClass to unregisterancestor
- its ancestor
LdapException
- If something went wrongvoid 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 supportedObjectClass unregister(java.lang.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 |