public class StaticRecoveryMode extends Object implements RecoveryMode
RecoveryMode that uses a static user.| Constructor and Description |
|---|
StaticRecoveryMode(String recoveryUsername) |
| Modifier and Type | Method and Description |
|---|---|
static StaticRecoveryMode |
disabled() |
static StaticRecoveryMode |
enabled(String user) |
com.atlassian.fugue.Option<String> |
getRecoveryUsername()
Tells the caller the name of the 'recovery admin'.
|
boolean |
isRecoveryModeOn()
Tells the caller if JIRA is in recovery mode.
|
boolean |
isRecoveryUser(ApplicationUser user)
Tells if the caller if the passed
ApplicationUser is the 'recovery admin'. |
boolean |
isRecoveryUsername(String username)
Tells the caller if the passed username is associated with the 'recovery admin'.
|
public StaticRecoveryMode(String recoveryUsername)
public boolean isRecoveryModeOn()
RecoveryModeisRecoveryModeOn in interface RecoveryModetrue JIRA is in recovery mode or false otherwise.public boolean isRecoveryUser(ApplicationUser user)
RecoveryModeApplicationUser is the 'recovery admin'.isRecoveryUser in interface RecoveryModetrue if the passed ApplicationUser is the 'recovery admin' and recovery mode is enabled.public boolean isRecoveryUsername(String username)
RecoveryModeisRecoveryUsername in interface RecoveryModeusername - the username to check.true if the passed name is the 'recovery admin' and recovery mode is enabled.public com.atlassian.fugue.Option<String> getRecoveryUsername()
RecoveryModegetRecoveryUsername in interface RecoveryModeOption.none() if there is no 'recovery admin' active.public static StaticRecoveryMode enabled(String user)
public static StaticRecoveryMode disabled()
Copyright © 2002-2019 Atlassian. All Rights Reserved.