|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.schema.registries.DefaultSchemaObjectRegistry<ObjectClass>
org.apache.directory.shared.ldap.schema.registries.DefaultObjectClassRegistry
public class DefaultObjectClassRegistry
An ObjectClass registry's service default implementation.
Field Summary |
---|
Fields inherited from class org.apache.directory.shared.ldap.schema.registries.DefaultSchemaObjectRegistry |
---|
byName, oidRegistry, schemaObjectType |
Constructor Summary | |
---|---|
DefaultObjectClassRegistry()
Creates a new default ObjectClassRegistry instance. |
Method Summary | |
---|---|
void |
clear()
Clear the registry from all its content |
DefaultObjectClassRegistry |
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 |
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 SchemaObject registered with this registry, using its numeric OID. |
void |
unregisterDescendants(ObjectClass attributeType,
java.util.List<ObjectClass> ancestors)
Remove the ObjectClass from the map associating an ObjectClass to its descendants. |
Methods inherited from class org.apache.directory.shared.ldap.schema.registries.DefaultSchemaObjectRegistry |
---|
contains, copy, get, getOidByName, getSchemaName, getType, iterator, lookup, oidsIterator, register, renameSchema, size, toString, unregister, unregisterSchemaElements |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.directory.shared.ldap.schema.registries.ObjectClassRegistry |
---|
register |
Methods inherited from interface org.apache.directory.shared.ldap.schema.registries.SchemaObjectRegistry |
---|
contains, get, getOidByName, getSchemaName, getType, iterator, lookup, oidsIterator, renameSchema, size, unregister, unregisterSchemaElements |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Constructor Detail |
---|
public DefaultObjectClassRegistry()
Method Detail |
---|
public boolean hasDescendants(java.lang.String ancestorId) throws LdapException
hasDescendants
in interface ObjectClassRegistry
ancestorId
- the name alias or OID for an ObjectClass
LdapException
- if the ancestor ObjectClass cannot be
discerned from the ancestorId suppliedpublic java.util.Iterator<ObjectClass> descendants(java.lang.String ancestorId) throws LdapException
descendants
in interface ObjectClassRegistry
ancestorId
- the name alias or OID for an ObjectClass
LdapException
- if the ancestor ObjectClass cannot be
discerned from the ancestorId suppliedpublic void registerDescendants(ObjectClass objectClass, java.util.List<ObjectClass> ancestors) throws LdapException
registerDescendants
in interface ObjectClassRegistry
LdapException
- If something went wrongpublic void unregisterDescendants(ObjectClass attributeType, java.util.List<ObjectClass> ancestors) throws LdapException
unregisterDescendants
in interface ObjectClassRegistry
attributeType
- The ObjectClass to unregister
LdapException
- If something went wrongpublic ObjectClass unregister(java.lang.String numericOid) throws LdapException
unregister
in interface ObjectClassRegistry
unregister
in interface SchemaObjectRegistry<ObjectClass>
unregister
in class DefaultSchemaObjectRegistry<ObjectClass>
numericOid
- the numeric identifier
LdapException
- if the numeric identifier is invalidpublic DefaultObjectClassRegistry copy()
copy
in interface ObjectClassRegistry
copy
in interface SchemaObjectRegistry<ObjectClass>
public void clear()
clear
in interface SchemaObjectRegistry<ObjectClass>
clear
in class DefaultSchemaObjectRegistry<ObjectClass>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |