com.atlassian.crowd.openid.server.manager.user
Class UserManagerGeneric

java.lang.Object
  extended by com.atlassian.crowd.openid.server.manager.user.UserManagerGeneric
All Implemented Interfaces:
UserManager

public class UserManagerGeneric
extends Object
implements UserManager


Constructor Summary
UserManagerGeneric()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserManagerGeneric

public UserManagerGeneric()
Method Detail

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 © 2012 Atlassian. All Rights Reserved.