public class LDAPUserAttributesMapper extends Object
Attributes object to the Crowd {User} object type, and vice versa.
Populates missing name information as required.| Modifier and Type | Field and Description |
|---|---|
protected long |
directoryId |
protected LDAPPropertiesMapper |
ldapPropertiesMapper |
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
LDAPUserAttributesMapper(long directoryId,
LDAPPropertiesMapper ldapPropertiesMapper) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getExternalIdFromAttribute(Attributes directoryAttributes) |
Set<String> |
getRequiredLdapAttributes() |
protected boolean |
getUserActiveFromAttribute(Attributes directoryAttributes) |
protected String |
getUserDisplayNameFromAttribute(Attributes directoryAttributes) |
protected String |
getUserEmailFromAttribute(Attributes directoryAttributes) |
protected String |
getUserFirstNameFromAttribute(Attributes directoryAttributes) |
protected String |
getUserLastNameFromAttribute(Attributes directoryAttributes) |
protected String |
getUsernameFromAttributes(Attributes directoryAttributes) |
Attributes |
mapAttributesFromUser(User user)
Creates an LDAP
Attributes object containing the information in the User object. |
UserTemplateWithAttributes |
mapUserFromAttributes(Attributes directoryAttributes)
Creates a
User object containing the information in the Attributes object. |
protected final org.slf4j.Logger logger
protected final LDAPPropertiesMapper ldapPropertiesMapper
protected final long directoryId
public LDAPUserAttributesMapper(long directoryId,
LDAPPropertiesMapper ldapPropertiesMapper)
public Attributes mapAttributesFromUser(User user) throws org.springframework.ldap.NamingException
Attributes object containing the information in the User object.user - The object to take the values fromorg.springframework.ldap.NamingExceptionpublic UserTemplateWithAttributes mapUserFromAttributes(Attributes directoryAttributes) throws org.springframework.ldap.NamingException
User object containing the information in the Attributes object.directoryAttributes - The directory-specific {Attributes} object to take the values fromorg.springframework.ldap.NamingExceptionprotected String getUserDisplayNameFromAttribute(Attributes directoryAttributes)
protected String getUserLastNameFromAttribute(Attributes directoryAttributes)
protected String getUserFirstNameFromAttribute(Attributes directoryAttributes)
protected String getUserEmailFromAttribute(Attributes directoryAttributes)
protected boolean getUserActiveFromAttribute(Attributes directoryAttributes)
protected String getExternalIdFromAttribute(Attributes directoryAttributes)
protected String getUsernameFromAttributes(Attributes directoryAttributes) throws org.springframework.ldap.NamingException
org.springframework.ldap.NamingExceptionCopyright © 2017 Atlassian. All rights reserved.