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:
initialize
in interfaceUserMapper
-
getCreationAttributes
public Attributes getCreationAttributes(User user, boolean encodePasswordIfChanged) throws MappingException
- Specified by:
getCreationAttributes
in interfaceUserMapper
- Throws:
MappingException
-
getEmailAddressAttribute
public String getEmailAddressAttribute()
- Specified by:
getEmailAddressAttribute
in interfaceUserMapper
-
getUserFullNameAttribute
public String getUserFullNameAttribute()
- Specified by:
getUserFullNameAttribute
in interfaceUserMapper
-
getPasswordAttribute
public String getPasswordAttribute()
- Specified by:
getPasswordAttribute
in interfaceUserMapper
-
getDistinguishedNameAttribute
public String getDistinguishedNameAttribute()
-
setDistinguishedNameAttribute
public void setDistinguishedNameAttribute(String distinguishedNameAttribute)
-
getUserAttributeNames
public String[] getUserAttributeNames()
- Specified by:
getUserAttributeNames
in interfaceUserMapper
-
getMaxResultCount
public int getMaxResultCount()
-
getUpdate
public UserUpdate getUpdate(LdapUser user) throws MappingException
- Specified by:
getUpdate
in interfaceUserMapper
- Throws:
MappingException
-
getUser
public LdapUser getUser(String dn, Attributes attributes) throws MappingException
- Specified by:
getUser
in interfaceUserMapper
- Throws:
MappingException
-
getUserIdAttribute
public String getUserIdAttribute()
- Specified by:
getUserIdAttribute
in interfaceUserMapper
-
getEmailAttribute
public String getEmailAttribute()
- Specified by:
getEmailAttribute
in 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:
getUserBaseDn
in interfaceUserMapper
-
setUserBaseDn
public void setUserBaseDn(String userBaseDn)
-
getUserObjectClass
public String getUserObjectClass()
- Specified by:
getUserObjectClass
in interfaceUserMapper
-
getUserFilter
public String getUserFilter()
- Specified by:
getUserFilter
in 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:
newUserInstance
in interfaceUserMapper
-
newTemplateUserInstance
public LdapUser newTemplateUserInstance()
- Specified by:
newTemplateUserInstance
in interfaceUserMapper
-
getReturningAttributes
public String[] getReturningAttributes()
- Specified by:
getReturningAttributes
in interfaceUserMapper
-
getUserConf
public UserConfiguration getUserConf()
-
setUserConf
public void setUserConf(UserConfiguration userConf)
-
-