public final class DefaultRecoveryMode extends Object implements RecoveryMode
RecoveryMode
that delegates to
RecoveryModeService
.Constructor and Description |
---|
DefaultRecoveryMode(com.atlassian.crowd.manager.recovery.RecoveryModeService recoveryModeService) |
Modifier and Type | Method and Description |
---|---|
io.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 DefaultRecoveryMode(com.atlassian.crowd.manager.recovery.RecoveryModeService recoveryModeService)
public boolean isRecoveryModeOn()
RecoveryMode
isRecoveryModeOn
in interface RecoveryMode
true
JIRA is in recovery mode or false otherwise.public boolean isRecoveryUser(ApplicationUser user)
RecoveryMode
ApplicationUser
is the 'recovery admin'.isRecoveryUser
in interface RecoveryMode
true
if the passed ApplicationUser
is the 'recovery admin' and recovery mode is enabled.public boolean isRecoveryUsername(String username)
RecoveryMode
isRecoveryUsername
in interface RecoveryMode
username
- the username to check.true
if the passed name
is the 'recovery admin' and recovery mode is enabled.public io.atlassian.fugue.Option<String> getRecoveryUsername()
RecoveryMode
getRecoveryUsername
in interface RecoveryMode
Option.none()
if there is no 'recovery admin' active.Copyright © 2002-2019 Atlassian. All Rights Reserved.