public class UserManagerGeneric extends Object implements UserManager
Constructor and Description |
---|
UserManagerGeneric() |
Modifier and Type | Method and Description |
---|---|
AuthRecordDAO |
getAuthRecordDAO() |
List |
getAuthRecords(User user,
int startIndex,
int maxResults)
Retrieves a subset of the authentication history for a given user,
in reverse chronological order.
|
ProfileManager |
getProfileManager() |
SecurityServerClient |
getSecurityServerClient() |
int |
getTotalAuthRecords(User user)
Retrieves the total number of authentication records for a given user.
|
User |
getUser(SOAPPrincipal principal,
Locale locale)
Retrieves or creates a User from the database matching
the name of the supplied SOAPPrincipal.
|
UserDAO |
getUserDAO() |
boolean |
isAdministrator(String username) |
void |
setAuthRecordDAO(AuthRecordDAO authRecordDAO) |
void |
setProfileManager(ProfileManager profileManager) |
void |
setPropertyManager(OpenIDPropertyManager openIDPropertyManager) |
void |
setSecurityServerClient(SecurityServerClient securityServerClient) |
void |
setUserDAO(UserDAO userDAO) |
public User getUser(SOAPPrincipal principal, Locale locale) throws UserManagerException
getUser
in interface UserManager
principal
- the SOAP principal corresponding to the user.locale
- the Locale of the user (to get country/language information) if default profile needs to get created.UserManagerException
- error creating a default profile for a new user.public boolean isAdministrator(String username)
isAdministrator
in interface UserManager
public void setPropertyManager(OpenIDPropertyManager openIDPropertyManager)
public List getAuthRecords(User user, int startIndex, int maxResults)
UserManager
getAuthRecords
in interface UserManager
user
- owner of authentication records.startIndex
- start index.maxResults
- maximum number of results.public int getTotalAuthRecords(User user)
UserManager
getTotalAuthRecords
in interface UserManager
user
- owner of the authentication records.public UserDAO getUserDAO()
public void setUserDAO(UserDAO userDAO)
public ProfileManager getProfileManager()
public void setProfileManager(ProfileManager profileManager)
public AuthRecordDAO getAuthRecordDAO()
public void setAuthRecordDAO(AuthRecordDAO authRecordDAO)
public SecurityServerClient getSecurityServerClient()
public void setSecurityServerClient(SecurityServerClient securityServerClient)
Copyright © 2013 Atlassian. All Rights Reserved.