Class LdapUserMapper
- java.lang.Object
-
- org.apache.archiva.redback.common.ldap.user.LdapUserMapper
-
- All Implemented Interfaces:
UserMapper
@Service("userMapper#ldap") public class LdapUserMapper extends Object implements UserMapper- Author:
- Jesse
-
-
Constructor Summary
Constructors Constructor Description LdapUserMapper()
-
Method Summary
-
-
-
Constructor Detail
-
LdapUserMapper
public LdapUserMapper()
-
-
Method Detail
-
initialize
@PostConstruct public void initialize()
- Specified by:
initializein interfaceUserMapper
-
getCreationAttributes
public Attributes getCreationAttributes(User user, boolean encodePasswordIfChanged) throws MappingException
- Specified by:
getCreationAttributesin interfaceUserMapper- Throws:
MappingException
-
getEmailAddressAttribute
public String getEmailAddressAttribute()
- Specified by:
getEmailAddressAttributein interfaceUserMapper
-
getUserFullNameAttribute
public String getUserFullNameAttribute()
- Specified by:
getUserFullNameAttributein interfaceUserMapper
-
getPasswordAttribute
public String getPasswordAttribute()
- Specified by:
getPasswordAttributein interfaceUserMapper
-
getDistinguishedNameAttribute
public String getDistinguishedNameAttribute()
-
setDistinguishedNameAttribute
public void setDistinguishedNameAttribute(String distinguishedNameAttribute)
-
getUserAttributeNames
public String[] getUserAttributeNames()
- Specified by:
getUserAttributeNamesin interfaceUserMapper
-
getMaxResultCount
public int getMaxResultCount()
-
getUpdate
public UserUpdate getUpdate(LdapUser user) throws MappingException
- Specified by:
getUpdatein interfaceUserMapper- Throws:
MappingException
-
getUser
public LdapUser getUser(String dn, Attributes attributes) throws MappingException
- Specified by:
getUserin interfaceUserMapper- Throws:
MappingException
-
getUserIdAttribute
public String getUserIdAttribute()
- Specified by:
getUserIdAttributein interfaceUserMapper
-
getEmailAttribute
public String getEmailAttribute()
- Specified by:
getEmailAttributein interfaceUserMapper
-
setEmailAttribute
public void setEmailAttribute(String emailAttribute)
-
getFullNameAttribute
public String getFullNameAttribute()
-
setFullNameAttribute
public void setFullNameAttribute(String fullNameAttribute)
-
setMaxResultCount
public void setMaxResultCount(int maxResultCount)
-
getUserBaseDn
public String getUserBaseDn()
- Specified by:
getUserBaseDnin interfaceUserMapper
-
setUserBaseDn
public void setUserBaseDn(String userBaseDn)
-
getUserObjectClass
public String getUserObjectClass()
- Specified by:
getUserObjectClassin interfaceUserMapper
-
getUserFilter
public String getUserFilter()
- Specified by:
getUserFilterin interfaceUserMapper
-
setUserFilter
public void setUserFilter(String userFilter)
-
setUserObjectClass
public void setUserObjectClass(String userObjectClass)
-
setPasswordAttribute
public void setPasswordAttribute(String passwordAttribute)
-
setUserIdAttribute
public void setUserIdAttribute(String userIdAttribute)
-
newUserInstance
public LdapUser newUserInstance(String username, String fullName, String email)
- Specified by:
newUserInstancein interfaceUserMapper
-
newTemplateUserInstance
public LdapUser newTemplateUserInstance()
- Specified by:
newTemplateUserInstancein interfaceUserMapper
-
getReturningAttributes
public String[] getReturningAttributes()
- Specified by:
getReturningAttributesin interfaceUserMapper
-
getUserConf
public UserConfiguration getUserConf()
-
setUserConf
public void setUserConf(UserConfiguration userConf)
-
-