com.atlassian.crowd.openid.server.manager.user
Class UserManagerGeneric
java.lang.Object
com.atlassian.crowd.openid.server.manager.user.UserManagerGeneric
- All Implemented Interfaces:
- UserManager
public class UserManagerGeneric
- extends Object
- implements UserManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserManagerGeneric
public UserManagerGeneric()
getUser
public User getUser(SOAPPrincipal principal,
Locale locale)
throws UserManagerException
- Retrieves or creates a User from the database matching
the name of the supplied SOAPPrincipal.
- Specified by:
getUser
in interface UserManager
- Parameters:
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.
- Returns:
- user corresponding to principal (either retrieved or created).
- Throws:
UserManagerException
- error creating a default profile for a new user.
isAdministrator
public boolean isAdministrator(String username)
- Specified by:
isAdministrator
in interface UserManager
setPropertyManager
public void setPropertyManager(OpenIDPropertyManager openIDPropertyManager)
getAuthRecords
public List getAuthRecords(User user,
int startIndex,
int maxResults)
- Description copied from interface:
UserManager
- Retrieves a subset of the authentication history for a given user,
in reverse chronological order.
- Specified by:
getAuthRecords
in interface UserManager
- Parameters:
user
- owner of authentication records.startIndex
- start index.maxResults
- maximum number of results.
- Returns:
- List.
getTotalAuthRecords
public int getTotalAuthRecords(User user)
- Description copied from interface:
UserManager
- Retrieves the total number of authentication records for a given user.
- Specified by:
getTotalAuthRecords
in interface UserManager
- Parameters:
user
- owner of the authentication records.
- Returns:
- number of authentication records.
getUserDAO
public UserDAO getUserDAO()
setUserDAO
public void setUserDAO(UserDAO userDAO)
getProfileManager
public ProfileManager getProfileManager()
setProfileManager
public void setProfileManager(ProfileManager profileManager)
getAuthRecordDAO
public AuthRecordDAO getAuthRecordDAO()
setAuthRecordDAO
public void setAuthRecordDAO(AuthRecordDAO authRecordDAO)
getSecurityServerClient
public SecurityServerClient getSecurityServerClient()
setSecurityServerClient
public void setSecurityServerClient(SecurityServerClient securityServerClient)
Copyright © 2013 Atlassian. All Rights Reserved.