public class SystemPropertyRecoveryModeService extends Object implements RecoveryModeService
RecoveryModeService
that activates recovery mode in presence of a system property that
is also used to configure the recovery user password.Modifier and Type | Field and Description |
---|---|
static StringSystemProperty |
PROP_RECOVERY_PASSWORD |
Constructor and Description |
---|
SystemPropertyRecoveryModeService(DirectoryInstanceLoader loader,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
Directory |
getRecoveryDirectory() |
String |
getRecoveryUsername() |
boolean |
isRecoveryDirectory(Directory directory)
Checks if directory is RecoveryModeDirectory
|
boolean |
isRecoveryModeOn() |
public static final StringSystemProperty PROP_RECOVERY_PASSWORD
public SystemPropertyRecoveryModeService(DirectoryInstanceLoader loader, com.atlassian.event.api.EventPublisher eventPublisher)
public boolean isRecoveryModeOn()
isRecoveryModeOn
in interface RecoveryModeService
true
, if recovery mode is currently activated. An appropriate event will be raised to notify
about the recovery mode being activated in the systemRecoveryModeActivatedEvent
public Directory getRecoveryDirectory()
getRecoveryDirectory
in interface RecoveryModeService
public String getRecoveryUsername()
getRecoveryUsername
in interface RecoveryModeService
public boolean isRecoveryDirectory(Directory directory)
RecoveryModeService
isRecoveryDirectory
in interface RecoveryModeService
directory
- to checkCopyright © 2021 Atlassian. All rights reserved.