com.atlassian.crowd.manager.recovery
Class SystemPropertyRecoveryModeService

java.lang.Object
  extended by 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

Constructor Summary
SystemPropertyRecoveryModeService(DirectoryInstanceLoader loader, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 Directory getRecoveryDirectory()
           
 String getRecoveryUsername()
           
 boolean isRecoveryModeOn()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemPropertyRecoveryModeService

public SystemPropertyRecoveryModeService(DirectoryInstanceLoader loader,
                                         com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

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.