|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.schema.registries.DefaultSchemaObjectRegistry<ObjectClass>
org.apache.directory.api.ldap.model.schema.registries.DefaultObjectClassRegistry
public class DefaultObjectClassRegistry
An ObjectClass registry's service default implementation.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.api.ldap.model.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 |
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 |
registerDescendants(ObjectClass objectClass,
List<ObjectClass> ancestors)
Store the ObjectClass into a map associating an ObjectClass to its descendants. |
ObjectClass |
unregister(String numericOid)
Removes the SchemaObject registered with this registry, using its numeric OID. |
void |
unregisterDescendants(ObjectClass attributeType,
List<ObjectClass> ancestors)
Remove the ObjectClass from the map associating an ObjectClass to its descendants. |
| Methods inherited from class org.apache.directory.api.ldap.model.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.api.ldap.model.schema.registries.ObjectClassRegistry |
|---|
register |
| Methods inherited from interface org.apache.directory.api.ldap.model.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(String ancestorId)
throws LdapException
hasDescendants in interface ObjectClassRegistryancestorId - the name alias or OID for an ObjectClass
LdapException - if the ancestor ObjectClass cannot be
discerned from the ancestorId supplied
public Iterator<ObjectClass> descendants(String ancestorId)
throws LdapException
descendants in interface ObjectClassRegistryancestorId - the name alias or OID for an ObjectClass
LdapException - if the ancestor ObjectClass cannot be
discerned from the ancestorId supplied
public void registerDescendants(ObjectClass objectClass,
List<ObjectClass> ancestors)
throws LdapException
registerDescendants in interface ObjectClassRegistryobjectClass - The ObjectClass to registerancestors - Its ancestors
LdapException - If something went wrong
public void unregisterDescendants(ObjectClass attributeType,
List<ObjectClass> ancestors)
throws LdapException
unregisterDescendants in interface ObjectClassRegistryattributeType - The ObjectClass to unregisterancestors - its ancestors
LdapException - If something went wrong
public ObjectClass unregister(String numericOid)
throws LdapException
unregister in interface ObjectClassRegistryunregister 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 ObjectClassRegistrycopy 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 | |||||||||