Class SystemPropertyRecoveryModeService
java.lang.Object
com.atlassian.crowd.manager.recovery.SystemPropertyRecoveryModeService
- All Implemented Interfaces:
RecoveryModeService
An implementation of
RecoveryModeService
that activates recovery mode in presence of a system property that
is also used to configure the recovery user password.- Since:
- 2.7.2
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSystemPropertyRecoveryModeService
(DirectoryInstanceLoader loader, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isRecoveryDirectory
(Directory directory) Checks if directory is RecoveryModeDirectoryboolean
-
Field Details
-
PROP_RECOVERY_PASSWORD
-
-
Constructor Details
-
SystemPropertyRecoveryModeService
public SystemPropertyRecoveryModeService(DirectoryInstanceLoader loader, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
isRecoveryModeOn
public boolean isRecoveryModeOn()- Specified by:
isRecoveryModeOn
in interfaceRecoveryModeService
- Returns:
true
, if recovery mode is currently activated. An appropriate event will be raised to notify about the recovery mode being activated in the system- See Also:
-
getRecoveryDirectory
- Specified by:
getRecoveryDirectory
in interfaceRecoveryModeService
- Returns:
- the recovery directory that contains the recovery user.
-
getRecoveryUsername
- Specified by:
getRecoveryUsername
in interfaceRecoveryModeService
- Returns:
- the username of the recovery user
-
isRecoveryDirectory
Description copied from interface:RecoveryModeService
Checks if directory is RecoveryModeDirectory- Specified by:
isRecoveryDirectory
in interfaceRecoveryModeService
- Parameters:
directory
- to check- Returns:
- true when directory is recovery directory
-