|
||||||||||
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 |
java.util.Iterator<AttributeType> |
descendants(java.lang.String ancestorId)
Get's an iterator over the set of descendant attributeTypes for some ancestor's name alias or their OID. |
java.util.Map<java.lang.String,OidNormalizer> |
getNormalizerMapping()
Gets an oid/name to normalizer mapping used to normalize distinguished names. |
boolean |
hasDescendants(java.lang.String ancestorId)
Quick lookup to see if an attribute has descendants. |
AttributeType |
lookup(java.lang.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(java.lang.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 java.util.Map<java.lang.String,OidNormalizer> getNormalizerMapping()
getNormalizerMapping
in interface AttributeTypeRegistry
public boolean hasDescendants(java.lang.String ancestorId) throws LdapException
hasDescendants
in interface AttributeTypeRegistry
ancestorId
- the name alias or OID for an attributeType
LdapException
- if the ancestor attributeType cannot be
discerned from the ancestorId suppliedpublic java.util.Iterator<AttributeType> descendants(java.lang.String ancestorId) throws LdapException
descendants
in interface AttributeTypeRegistry
ancestorId
- the name alias or OID for an attributeType
LdapException
- if the ancestor attributeType cannot be
discerned from the ancestorId suppliedpublic void registerDescendants(AttributeType attributeType, AttributeType ancestor) throws LdapException
registerDescendants
in interface AttributeTypeRegistry
attributeType
- The attributeType to register
LdapException
- If something went wrongpublic void unregisterDescendants(AttributeType attributeType, AttributeType ancestor) throws LdapException
unregisterDescendants
in interface AttributeTypeRegistry
attributeType
- The attributeType to unregisterancestor
- its ancestor
LdapException
- If something went wrongpublic AttributeType unregister(java.lang.String numericOid) throws LdapException
unregister
in interface SchemaObjectRegistry<AttributeType>
unregister
in class DefaultSchemaObjectRegistry<AttributeType>
numericOid
- the numeric identifier
LdapException
- if the numeric identifier is invalidpublic void addMappingFor(AttributeType attributeType) throws LdapException
addMappingFor
in interface AttributeTypeRegistry
LdapException
public void removeMappingFor(AttributeType attributeType) throws LdapException
removeMappingFor
in interface AttributeTypeRegistry
LdapException
public AttributeType lookup(java.lang.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 AttributeTypeRegistry
copy
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 |