com.atlassian.sal.jira.user
Class DefaultUserManager

java.lang.Object
  extended by com.atlassian.sal.jira.user.DefaultUserManager
All Implemented Interfaces:
com.atlassian.sal.api.user.UserManager

public class DefaultUserManager
extends Object
implements com.atlassian.sal.api.user.UserManager

User operations


Constructor Summary
DefaultUserManager(GlobalPermissionManager globalPermissionManager, JiraAuthenticationContext jiraAuthenticationContext, com.atlassian.crowd.embedded.api.CrowdService crowdService, AvatarService avatarService)
           
 
Method Summary
 boolean authenticate(String username, String password)
           
 String getRemoteUsername()
           
 String getRemoteUsername(javax.servlet.http.HttpServletRequest request)
           
 com.atlassian.sal.api.user.UserProfile getUserProfile(String username)
           
 boolean isAdmin(String username)
           
 boolean isSystemAdmin(String username)
           
 boolean isUserInGroup(String username, String groupName)
          Returns whether the user is in the specify group
 Principal resolve(String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUserManager

public DefaultUserManager(GlobalPermissionManager globalPermissionManager,
                          JiraAuthenticationContext jiraAuthenticationContext,
                          com.atlassian.crowd.embedded.api.CrowdService crowdService,
                          AvatarService avatarService)
Method Detail

getRemoteUsername

public String getRemoteUsername()
Specified by:
getRemoteUsername in interface com.atlassian.sal.api.user.UserManager

getRemoteUsername

public String getRemoteUsername(javax.servlet.http.HttpServletRequest request)
Specified by:
getRemoteUsername in interface com.atlassian.sal.api.user.UserManager

isSystemAdmin

public boolean isSystemAdmin(String username)
Specified by:
isSystemAdmin in interface com.atlassian.sal.api.user.UserManager

isAdmin

public boolean isAdmin(String username)
Specified by:
isAdmin in interface com.atlassian.sal.api.user.UserManager

authenticate

public boolean authenticate(String username,
                            String password)
Specified by:
authenticate in interface com.atlassian.sal.api.user.UserManager

resolve

public Principal resolve(String username)
                  throws com.atlassian.sal.api.user.UserResolutionException
Specified by:
resolve in interface com.atlassian.sal.api.user.UserManager
Throws:
com.atlassian.sal.api.user.UserResolutionException

isUserInGroup

public boolean isUserInGroup(String username,
                             String groupName)
Returns whether the user is in the specify group

Specified by:
isUserInGroup in interface com.atlassian.sal.api.user.UserManager
Parameters:
username - The username to check
groupName - The group to check
Returns:
True if the user is in the specified group

getUserProfile

public com.atlassian.sal.api.user.UserProfile getUserProfile(String username)
Specified by:
getUserProfile in interface com.atlassian.sal.api.user.UserManager


Copyright © 2002-2013 Atlassian. All Rights Reserved.