Interface UserChecker

All Known Implementing Classes:
UserCheckerImpl

public interface UserChecker
Centralises all logic related to user properties and conditions during the onboarding flow
Since:
v6.5
  • Method Details

    • firstTimeLoggingIn

      boolean firstTimeLoggingIn(@Nonnull 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
    • isOnDemandSysAdmin

      @Deprecated boolean isOnDemandSysAdmin(@Nonnull ApplicationUser user)
      Deprecated.
      Checks whether a given user is a sysadmin.
      Parameters:
      user - logged in
      Returns:
      whether the user is a sysadmin
    • isImpersonationActive

      boolean isImpersonationActive(@Nonnull 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