com.atlassian.crowd.openid.server.manager.user
Interface UserManager

All Known Implementing Classes:
UserManagerGeneric

public interface UserManager


Method Summary
 java.util.List getAuthRecords(User user, int startIndex, int maxResults)
          Retrieves a subset of the authentication history for a given user, in reverse chronological order.
 int getTotalAuthRecords(User user)
          Retrieves the total number of authentication records for a given user.
 User getUser(SOAPPrincipal principal, java.util.Locale locale)
          Retrieves or creates a User from the database matching the name of the supplied SOAPPrincipal.
 boolean isAdministrator(java.lang.String username)
           
 

Method Detail

getUser

User getUser(SOAPPrincipal principal,
             java.util.Locale locale)
             throws UserManagerException
Retrieves or creates a User from the database matching the name of the supplied SOAPPrincipal.

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.

getAuthRecords

java.util.List getAuthRecords(User user,
                              int startIndex,
                              int maxResults)
Retrieves a subset of the authentication history for a given user, in reverse chronological order.

Parameters:
user - owner of authentication records.
startIndex - start index.
maxResults - maximum number of results.
Returns:
List.

getTotalAuthRecords

int getTotalAuthRecords(User user)
Retrieves the total number of authentication records for a given user.

Parameters:
user - owner of the authentication records.
Returns:
number of authentication records.

isAdministrator

boolean isAdministrator(java.lang.String username)


Copyright © 2010 Atlassian. All Rights Reserved.