|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.schema.normalizers.ConcreteNameComponentNormalizer
public class ConcreteNameComponentNormalizer
A DN Name component Normalizer which uses the bootstrap registries to find the appropriate normalizer for the attribute of the name component with which to normalize the name component value.
| Constructor Summary | |
|---|---|
ConcreteNameComponentNormalizer(SchemaManager schemaManager)
Creates a DN Name component Normalizer which uses the bootstrap registries to find the appropriate normalizer for the attribute of the name component with which to normalize the name component value. |
|
| Method Summary | |
|---|---|
boolean |
isDefined(java.lang.String id)
Checks to see if an attribute name/oid is defined. |
java.lang.Object |
normalizeByName(java.lang.String name,
byte[] value)
Normalizes an attribute's value given the name of the attribute - short names like 'cn' as well as 'commonName' should work here. |
java.lang.Object |
normalizeByName(java.lang.String name,
java.lang.String value)
Normalizes an attribute's value given the name of the attribute - short names like 'cn' as well as 'commonName' should work here. |
java.lang.Object |
normalizeByOid(java.lang.String oid,
byte[] value)
Normalizes an attribute's value given the OID of the attribute. |
java.lang.Object |
normalizeByOid(java.lang.String oid,
java.lang.String value)
Normalizes an attribute's value given the OID of the attribute. |
java.lang.String |
normalizeName(java.lang.String attributeName)
Normalizes the attribute name/alias to use the OID for it instead. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConcreteNameComponentNormalizer(SchemaManager schemaManager)
schemaManager - the schemaManager used to dynamically resolve Normalizers| Method Detail |
|---|
public java.lang.Object normalizeByName(java.lang.String name,
java.lang.String value)
throws LdapException
NameComponentNormalizer
normalizeByName in interface NameComponentNormalizername - the name of the attributevalue - the value of the attribute to normalize
LdapException - if there is a recognition problem or a syntax issueNameComponentNormalizer.normalizeByName(String, String)
public java.lang.Object normalizeByName(java.lang.String name,
byte[] value)
throws LdapException
NameComponentNormalizer
normalizeByName in interface NameComponentNormalizername - the name of the attributevalue - the value of the attribute to normalize
LdapException - if there is a recognition problem or a syntax issueNameComponentNormalizer.normalizeByName(String, String)
public java.lang.Object normalizeByOid(java.lang.String oid,
java.lang.String value)
throws LdapException
NameComponentNormalizer
normalizeByOid in interface NameComponentNormalizeroid - the OID of the attributevalue - the value of the attribute to normalize
LdapException - if there is a recognition problem or a syntax issueNameComponentNormalizer.normalizeByOid(String, String)
public java.lang.Object normalizeByOid(java.lang.String oid,
byte[] value)
throws LdapException
NameComponentNormalizer
normalizeByOid in interface NameComponentNormalizeroid - the OID of the attributevalue - the value of the attribute to normalize
LdapException - if there is a recognition problem or a syntax issueNameComponentNormalizer.normalizeByOid(String, String)public boolean isDefined(java.lang.String id)
NameComponentNormalizer
isDefined in interface NameComponentNormalizerid - the name/oid of the attribute to see if it is defined
NameComponentNormalizer.isDefined(String)
public java.lang.String normalizeName(java.lang.String attributeName)
throws LdapException
NameComponentNormalizer
normalizeName in interface NameComponentNormalizerattributeName - the name or OID of the attributeType
LdapException - if the attributeName is not recognized as a valid alias
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||