com.atlassian.crowd.manager.recovery
Class SystemPropertyRecoveryModeService
java.lang.Object
com.atlassian.crowd.manager.recovery.SystemPropertyRecoveryModeService
- All Implemented Interfaces:
- RecoveryModeService
public class SystemPropertyRecoveryModeService
- extends Object
- implements 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemPropertyRecoveryModeService
public SystemPropertyRecoveryModeService(DirectoryInstanceLoader loader,
com.atlassian.event.api.EventPublisher eventPublisher)
isRecoveryModeOn
public boolean isRecoveryModeOn()
- Specified by:
isRecoveryModeOn in interface RecoveryModeService
- 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:
RecoveryModeActivatedEvent
getRecoveryDirectory
public Directory getRecoveryDirectory()
- Specified by:
getRecoveryDirectory in interface RecoveryModeService
- Returns:
- the recovery directory that contains the recovery user.
getRecoveryUsername
public String getRecoveryUsername()
- Specified by:
getRecoveryUsername in interface RecoveryModeService
- Returns:
- the username of the recovery user
Copyright © 2016 Atlassian. All Rights Reserved.