public interface RecoveryModeService
When recovery mode is activated
this service provides access to a special, in-memory
recovery directory
that contains a single user - host applications need to make
sure that this user has all the necessary permissions to recover from any malfunction or misconfiguration, should
one happen.
Interested parties (notably host applications) should subscribe to the
RecoveryModeActivatedEvent
to be notified of the recovery mode activation.
Modifier and Type | Method and Description |
---|---|
Directory |
getRecoveryDirectory() |
String |
getRecoveryUsername() |
boolean |
isRecoveryDirectory(Directory directory)
Checks if directory is RecoveryModeDirectory
|
boolean |
isRecoveryModeOn() |
boolean isRecoveryModeOn()
true
, if recovery mode is currently activated. An appropriate event will be raised to notify
about the recovery mode being activated in the systemRecoveryModeActivatedEvent
Directory getRecoveryDirectory()
IllegalStateException
- if the recovery mode is off
String getRecoveryUsername()
IllegalStateException
- if the recovery mode is off
boolean isRecoveryDirectory(Directory directory)
directory
- to checkCopyright © 2020 Atlassian. All rights reserved.