Package com.atlassian.jira.user.util
Interface RecoveryMode
- All Known Implementing Classes:
DefaultRecoveryMode,DisabledRecoveryMode,StaticRecoveryMode
public interface RecoveryMode
Abstraction for interacting with recovery mode. In recovery mode a special 'recovery admin' is able to login with a
password specified at the command line. This gives customers who lock themselves out the ability to login and fix any
problems.
- Since:
- 7.0
-
Method Summary
Modifier and TypeMethodDescriptionio.atlassian.fugue.Option<String> Tells the caller the name of the 'recovery admin'.booleanTells the caller if JIRA is in recovery mode.booleanTells if the caller if the passedApplicationUseris the 'recovery admin'.booleanisRecoveryUsername(String username) Tells the caller if the passed username is associated with the 'recovery admin'.
-
Method Details
-
isRecoveryModeOn
boolean isRecoveryModeOn()Tells the caller if JIRA is in recovery mode.- Returns:
trueJIRA is in recovery mode or false otherwise.
-
isRecoveryUser
Tells if the caller if the passedApplicationUseris the 'recovery admin'.- Returns:
trueif the passedApplicationUseris the 'recovery admin' and recovery mode is enabled.
-
isRecoveryUsername
Tells the caller if the passed username is associated with the 'recovery admin'.- Parameters:
username- the username to check.- Returns:
trueif the passednameis the 'recovery admin' and recovery mode is enabled.
-
getRecoveryUsername
io.atlassian.fugue.Option<String> getRecoveryUsername()Tells the caller the name of the 'recovery admin'.- Returns:
- the name of the user who is considered to be the 'recovery admin' or
Option.none()if there is no 'recovery admin' active.
-