public class

DefaultUserManager

extends Object
implements UserManager
java.lang.Object
   ↳ com.atlassian.sal.jira.user.DefaultUserManager

Class Overview

User operations

Summary

Public Constructors
DefaultUserManager(GlobalPermissionManager globalPermissionManager, JiraAuthenticationContext jiraAuthenticationContext, CrowdService crowdService, AvatarService avatarService, UserManager userManager)
Public Methods
boolean authenticate(String username, String password)
Iterable<String> findGroupNamesByPrefix(String prefix, int startIndex, int maxResults)
UserProfile getRemoteUser()
UserProfile getRemoteUser(HttpServletRequest httpServletRequest)
@Nullable UserKey getRemoteUserKey()
@Nullable UserKey getRemoteUserKey(HttpServletRequest request)
String getRemoteUsername()
String getRemoteUsername(HttpServletRequest request)
UserProfile getUserProfile(UserKey userKey)
UserProfile getUserProfile(String username)
boolean isAdmin(String username)
boolean isAdmin(UserKey userKey)
boolean isSystemAdmin(String username)
boolean isSystemAdmin(UserKey userKey)
boolean isUserInGroup(UserKey userKey, String groupName)
boolean isUserInGroup(String username, String groupName)
Returns whether the user is in the specify group
Principal resolve(String username)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.sal.api.user.UserManager

Public Constructors

public DefaultUserManager (GlobalPermissionManager globalPermissionManager, JiraAuthenticationContext jiraAuthenticationContext, CrowdService crowdService, AvatarService avatarService, UserManager userManager)

Public Methods

public boolean authenticate (String username, String password)

public Iterable<String> findGroupNamesByPrefix (String prefix, int startIndex, int maxResults)

public UserProfile getRemoteUser ()

public UserProfile getRemoteUser (HttpServletRequest httpServletRequest)

@Nullable public UserKey getRemoteUserKey ()

@Nullable public UserKey getRemoteUserKey (HttpServletRequest request)

public String getRemoteUsername ()

public String getRemoteUsername (HttpServletRequest request)

public UserProfile getUserProfile (UserKey userKey)

public UserProfile getUserProfile (String username)

public boolean isAdmin (String username)

public boolean isAdmin (UserKey userKey)

public boolean isSystemAdmin (String username)

public boolean isSystemAdmin (UserKey userKey)

public boolean isUserInGroup (UserKey userKey, String groupName)

public boolean isUserInGroup (String username, String groupName)

Returns whether the user is in the specify group

Parameters
username The username to check
groupName The group to check
Returns
  • True if the user is in the specified group

public Principal resolve (String username)

Throws
UserResolutionException