|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeMapper
Maps a single attribute for an entity from an LDAP
DirContextAdapter
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
.
Method Summary | |
---|---|
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(DirContextAdapter) will
be called on the results. |
Set<String> |
getValues(org.springframework.ldap.core.DirContextAdapter ctx)
Map the value of the key from the directory context. |
Method Detail |
---|
String getKey()
Attributes
.
Set<String> getValues(org.springframework.ldap.core.DirContextAdapter ctx) throws Exception
ctx
- directory context containing attributes.
Exception
- error retrieving value. The attribute will not be set.Set<String> getRequiredLdapAttributes()
getValues(DirContextAdapter)
will
be called on the results. If an implementation returns null
then all attributes will
be requested.
null
for all
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |