public class UserCheckerImpl extends Object implements UserChecker
Constructor and Description |
---|
UserCheckerImpl(UserKeyStore userKeyStore,
LoginService loginService,
FeatureManager featureManager,
GlobalPermissionManager permissionManager,
PropertiesManager propertiesManager,
HttpServletVariables httpServetVariables) |
Modifier and Type | Method and Description |
---|---|
boolean |
firstTimeLoggingIn(ApplicationUser user)
Tests whether this is the first time a user has logged in.
|
boolean |
isImpersonationActive(ApplicationUser user)
Checks whether the current user is impersonating a second user
|
boolean |
isOnDemandSysAdmin(ApplicationUser user)
Checks whether a given user is a sysadmin.
|
public UserCheckerImpl(UserKeyStore userKeyStore, LoginService loginService, FeatureManager featureManager, GlobalPermissionManager permissionManager, PropertiesManager propertiesManager, HttpServletVariables httpServetVariables)
public boolean firstTimeLoggingIn(@Nonnull ApplicationUser user)
UserChecker
firstTimeLoggingIn
in interface UserChecker
user
- logging inpublic boolean isOnDemandSysAdmin(@Nonnull ApplicationUser user)
UserChecker
isOnDemandSysAdmin
in interface UserChecker
user
- logged inpublic boolean isImpersonationActive(@Nonnull ApplicationUser user)
UserChecker
isImpersonationActive
in interface UserChecker
user
- currently logged in (as returned by JiraAuthenticationContext)Copyright © 2002-2015 Atlassian. All Rights Reserved.