public interface AttributeTypeRegistry extends SchemaObjectRegistry<AttributeType>, Iterable<AttributeType>
Modifier and Type | Method and Description |
---|---|
void |
addMappingFor(AttributeType attributeType)
Add a new Oid/Normalizer couple in the OidNormalizer map
|
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.
|
void |
registerDescendants(AttributeType attributeType,
AttributeType ancestor)
Store the AttributeType into a map associating an AttributeType to its
descendants.
|
void |
removeMappingFor(AttributeType attributeType)
Remove a new Oid/Normalizer couple in the OidNormalizer map
|
void |
unregisterDescendants(AttributeType attributeType,
AttributeType ancestor)
Remove the AttributeType from the map associating an AttributeType to its
descendants.
|
clear, contains, get, getOidByName, getSchemaName, getType, iterator, lookup, oidsIterator, register, renameSchema, size, unregister, unregister, unregisterSchemaElements
forEach, iterator, spliterator
Map<String,OidNormalizer> getNormalizerMapping()
boolean hasDescendants(String ancestorId) throws LdapException
ancestorId
- the name alias or OID for an attributeTypeLdapException
- if the ancestor attributeType cannot be
discerned from the ancestorId suppliedboolean hasDescendants(AttributeType ancestor) throws LdapException
ancestor
- the attributeType we are looking forLdapException
- if the ancestor attributeType cannot be
discerned from the ancestorId suppliedIterator<AttributeType> descendants(String ancestorId) throws LdapException
ancestorId
- the name alias or OID for an attributeTypeLdapException
- if the ancestor attributeType cannot be
discerned from the ancestorId suppliedIterator<AttributeType> descendants(AttributeType ancestor) throws LdapException
ancestor
- the AttributeType we are looking forLdapException
- if the ancestor attributeType cannot be
discerned from the ancestorId suppliedvoid registerDescendants(AttributeType attributeType, AttributeType ancestor) throws LdapException
attributeType
- The attributeType to registerancestor
- The attributeType's parentLdapException
- If something went wrongvoid unregisterDescendants(AttributeType attributeType, AttributeType ancestor) throws LdapException
attributeType
- The attributeType to unregisterancestor
- its ancestorLdapException
- If something went wrongvoid addMappingFor(AttributeType attributeType) throws LdapException
attributeType
- The AttributeType to addLdapException
- If something went wrongvoid removeMappingFor(AttributeType attributeType) throws LdapException
attributeType
- The AttributeType to removeLdapException
- If something went wrongAttributeTypeRegistry copy()
copy
in interface SchemaObjectRegistry<AttributeType>
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.