public interface AttributeMapper
Maps a single attribute for an entity from an LDAP
NameAttributesPair
to a set of string values.
This is used for non-core attributes, such as membership for specific
directory types and for custom attributes.
Mandatory or field-level attributes are mapped via the
LDAPUserAttributesMapper
and the
LDAPGroupAttributesMapper
.
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Get the key to use when storing the attribute on an entity
with
Attributes . |
Set<String> |
getRequiredLdapAttributes()
Returns the LDAP attributes that should be requested in a search where
getValues(NameAttributesPair)
will be called on the results. |
Set<String> |
getValues(NameAttributesPair nameAttributesPair)
Map the value of the key from a directory entry.
|
String getKey()
Attributes
.Set<String> getValues(NameAttributesPair nameAttributesPair) throws Exception
nameAttributesPair
- directory entry containing attributes.Exception
- error retrieving value. The attribute will not be set.Set<String> getRequiredLdapAttributes()
getValues(NameAttributesPair)
will be called on the results. If an implementation returns null
then all attributes will be
requested.null
for allCopyright © 2024 Atlassian. All rights reserved.