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.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 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 © 2020 Atlassian. All rights reserved.