public interface

UserChecker

com.atlassian.jira.onboarding.UserChecker
Known Indirect Subclasses

Class Overview

Centralises all logic related to user properties and conditions during the onboarding flow

Summary

Public Methods
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 Methods

public boolean firstTimeLoggingIn (ApplicationUser user)

Tests whether this is the first time a user has logged in.

Parameters
user logging in
Returns
  • whether they have logged in before

public boolean isImpersonationActive (ApplicationUser user)

Checks whether the current user is impersonating a second user

Parameters
user currently logged in (as returned by JiraAuthenticationContext)
Returns
  • whether or not the impersonation feature was detected as active

public boolean isOnDemandSysAdmin (ApplicationUser user)

Checks whether a given user is a sysadmin.

Parameters
user logged in
Returns
  • whether the user is a sysadmin