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)
UserCheckerfirstTimeLoggingIn in interface UserCheckeruser - logging inpublic boolean isOnDemandSysAdmin(@Nonnull ApplicationUser user)
UserCheckerisOnDemandSysAdmin in interface UserCheckeruser - logged inpublic boolean isImpersonationActive(@Nonnull ApplicationUser user)
UserCheckerisImpersonationActive in interface UserCheckeruser - currently logged in (as returned by JiraAuthenticationContext)Copyright © 2002-2018 Atlassian. All Rights Reserved.