|
||||||||||
| 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<AttributeType>
org.apache.directory.api.ldap.model.schema.registries.DefaultAttributeTypeRegistry
public class DefaultAttributeTypeRegistry
An AttributeType registry service default implementation.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.api.ldap.model.schema.registries.DefaultSchemaObjectRegistry |
|---|
byName, oidRegistry, schemaObjectType |
| Constructor Summary | |
|---|---|
DefaultAttributeTypeRegistry()
Creates a new default AttributeTypeRegistry instance. |
|
| Method Summary | |
|---|---|
void |
addMappingFor(AttributeType attributeType)
Add a new Oid/Normalizer couple in the OidNormalizer map |
void |
clear()
Clear the registry from all its content |
AttributeTypeRegistry |
copy()
Copy the AttributeTypeRegistry |
Iterator<AttributeType> |
descendants(AttributeType ancestor)
Get's an iterator over the set of descendant attributeTypes for some ancestor's name alias or their OID. |
Iterator<AttributeType> |
descendants(String ancestorId)
Get's an iterator over the set of descendant attributeTypes for some ancestor's name alias or their OID. |
Map<String,OidNormalizer> |
getNormalizerMapping()
Gets an oid/name to normalizer mapping used to normalize distinguished names. |
boolean |
hasDescendants(AttributeType ancestor)
Quick lookup to see if an attribute has descendants. |
boolean |
hasDescendants(String ancestorId)
Quick lookup to see if an attribute has descendants. |
AttributeType |
lookup(String oid)
Looks up a SchemaObject by its unique Object Identifier or by name. |
void |
registerDescendants(AttributeType attributeType,
AttributeType ancestor)
Store the AttributeType into a map associating an AttributeType to its descendants. |
void |
removeMappingFor(AttributeType attributeType)
Remove the AttributeType normalizer from the OidNormalizer map |
AttributeType |
unregister(String numericOid)
Removes the SchemaObject registered with this registry, using its numeric OID. |
void |
unregisterDescendants(AttributeType attributeType,
AttributeType ancestor)
Remove the AttributeType from the map associating an AttributeType to its descendants. |
| Methods inherited from class org.apache.directory.api.ldap.model.schema.registries.DefaultSchemaObjectRegistry |
|---|
contains, copy, get, getOidByName, getSchemaName, getType, iterator, 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.SchemaObjectRegistry |
|---|
contains, get, getOidByName, getSchemaName, getType, iterator, oidsIterator, register, renameSchema, size, unregister, unregisterSchemaElements |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Constructor Detail |
|---|
public DefaultAttributeTypeRegistry()
| Method Detail |
|---|
public Map<String,OidNormalizer> getNormalizerMapping()
getNormalizerMapping in interface AttributeTypeRegistry
public boolean hasDescendants(String ancestorId)
throws LdapException
hasDescendants in interface AttributeTypeRegistryancestorId - the name alias or OID for an attributeType
LdapException - if the ancestor attributeType cannot be
discerned from the ancestorId supplied
public boolean hasDescendants(AttributeType ancestor)
throws LdapException
hasDescendants in interface AttributeTypeRegistryancestor - the attributeType we are looking for
LdapException - if the ancestor attributeType cannot be
discerned from the ancestorId supplied
public Iterator<AttributeType> descendants(String ancestorId)
throws LdapException
descendants in interface AttributeTypeRegistryancestorId - the name alias or OID for an attributeType
LdapException - if the ancestor attributeType cannot be
discerned from the ancestorId supplied
public Iterator<AttributeType> descendants(AttributeType ancestor)
throws LdapException
descendants in interface AttributeTypeRegistryancestor - the AttributeType we are looking for
LdapException - if the ancestor attributeType cannot be
discerned from the ancestorId supplied
public void registerDescendants(AttributeType attributeType,
AttributeType ancestor)
throws LdapException
registerDescendants in interface AttributeTypeRegistryattributeType - The attributeType to register
LdapException - If something went wrong
public void unregisterDescendants(AttributeType attributeType,
AttributeType ancestor)
throws LdapException
unregisterDescendants in interface AttributeTypeRegistryattributeType - The attributeType to unregisterancestor - its ancestor
LdapException - If something went wrong
public AttributeType unregister(String numericOid)
throws LdapException
unregister in interface SchemaObjectRegistry<AttributeType>unregister in class DefaultSchemaObjectRegistry<AttributeType>numericOid - the numeric identifier
LdapException - if the numeric identifier is invalid
public void addMappingFor(AttributeType attributeType)
throws LdapException
addMappingFor in interface AttributeTypeRegistryLdapException
public void removeMappingFor(AttributeType attributeType)
throws LdapException
removeMappingFor in interface AttributeTypeRegistryLdapException
public AttributeType lookup(String oid)
throws LdapException
lookup in interface SchemaObjectRegistry<AttributeType>lookup in class DefaultSchemaObjectRegistry<AttributeType>oid - the object identifier or name
LdapException - if the SchemaObject does not existpublic AttributeTypeRegistry copy()
copy in interface AttributeTypeRegistrycopy in interface SchemaObjectRegistry<AttributeType>public void clear()
clear in interface SchemaObjectRegistry<AttributeType>clear in class DefaultSchemaObjectRegistry<AttributeType>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||