Package com.atlassian.jira.onboarding
Class UserCheckerImpl
java.lang.Object
com.atlassian.jira.onboarding.UserCheckerImpl
- All Implemented Interfaces:
UserChecker
-
Constructor Summary
ConstructorsConstructorDescriptionUserCheckerImpl(UserKeyStore userKeyStore, LoginService loginService, FeatureManager featureManager, GlobalPermissionManager permissionManager, PropertiesManager propertiesManager, HttpServletVariables httpServetVariables) -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests whether this is the first time a user has logged in.booleanChecks whether the current user is impersonating a second userbooleanChecks whether a given user is a sysadmin.
-
Constructor Details
-
UserCheckerImpl
public UserCheckerImpl(UserKeyStore userKeyStore, LoginService loginService, FeatureManager featureManager, GlobalPermissionManager permissionManager, PropertiesManager propertiesManager, HttpServletVariables httpServetVariables)
-
-
Method Details
-
firstTimeLoggingIn
Description copied from interface:UserCheckerTests whether this is the first time a user has logged in.- Specified by:
firstTimeLoggingInin interfaceUserChecker- Parameters:
user- logging in- Returns:
- whether they have logged in before
-
isOnDemandSysAdmin
Description copied from interface:UserCheckerChecks whether a given user is a sysadmin.- Specified by:
isOnDemandSysAdminin interfaceUserChecker- Parameters:
user- logged in- Returns:
- whether the user is a sysadmin
-
isImpersonationActive
Description copied from interface:UserCheckerChecks whether the current user is impersonating a second user- Specified by:
isImpersonationActivein interfaceUserChecker- Parameters:
user- currently logged in (as returned by JiraAuthenticationContext)- Returns:
- whether or not the impersonation feature was detected as active
-