|
||||||||||
| 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<AttributeType>
org.apache.directory.shared.ldap.schema.registries.DefaultAttributeTypeRegistry
public class DefaultAttributeTypeRegistry
An AttributeType registry service default implementation.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.ldap.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(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(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.shared.ldap.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.shared.ldap.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 NamingException
hasDescendants in interface AttributeTypeRegistryancestorId - the name alias or OID for an attributeType
NamingException - if the ancestor attributeType cannot be
discerned from the ancestorId supplied
public Iterator<AttributeType> descendants(String ancestorId)
throws NamingException
descendants in interface AttributeTypeRegistryancestorId - the name alias or OID for an attributeType
NamingException - if the ancestor attributeType cannot be
discerned from the ancestorId supplied
public void registerDescendants(AttributeType attributeType,
AttributeType ancestor)
throws NamingException
registerDescendants in interface AttributeTypeRegistryattributeType - The attributeType to register
NamingException - If something went wrong
public void unregisterDescendants(AttributeType attributeType,
AttributeType ancestor)
throws NamingException
unregisterDescendants in interface AttributeTypeRegistryattributeType - The attributeType to unregisterancestor - its ancestor
NamingException - If something went wrong
public AttributeType unregister(String numericOid)
throws NamingException
unregister in interface SchemaObjectRegistry<AttributeType>unregister in class DefaultSchemaObjectRegistry<AttributeType>numericOid - the numeric identifier
NamingException - if the numeric identifier is invalid
public void addMappingFor(AttributeType attributeType)
throws NamingException
addMappingFor in interface AttributeTypeRegistryNamingException
public void removeMappingFor(AttributeType attributeType)
throws NamingException
removeMappingFor in interface AttributeTypeRegistryNamingException
public AttributeType lookup(String oid)
throws NamingException
lookup in interface SchemaObjectRegistry<AttributeType>lookup in class DefaultSchemaObjectRegistry<AttributeType>oid - the object identifier or name
NamingException - 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 | |||||||||