com.atlassian.crowd.manager.recovery
Class RecoveryModeAwareApplicationService

java.lang.Object
  extended by com.atlassian.crowd.manager.application.ApplicationServiceGeneric
      extended by com.atlassian.crowd.manager.recovery.RecoveryModeAwareApplicationService
All Implemented Interfaces:
ApplicationService

public class RecoveryModeAwareApplicationService
extends ApplicationServiceGeneric

An extension of ApplicationServiceGeneric that supports recovery mode. When recovery mode is activated, an extra directory as provided by the RecoveryModeService will be prepended to the list of directories for any application.

Since:
2.7.2

Constructor Summary
RecoveryModeAwareApplicationService(DirectoryManager directoryManager, PermissionManager permissionManager, DirectoryInstanceLoader directoryInstanceLoader, com.atlassian.event.api.EventPublisher eventPublisher, EventStore eventStore, WebhookRegistry webhookRegistry, ApplicationFactory applicationFactory, RecoveryModeService recoveryModeService)
           
 
Method Summary
protected  Collection<Directory> getActiveDirectories(Application application)
          Given an application, retrieve all active directories associated with it.
 boolean isUserAuthorised(Application application, String username)
           
 
Methods inherited from class com.atlassian.crowd.manager.application.ApplicationServiceGeneric
addAllUsers, addGroup, addGroupToGroup, addUser, addUserToGroup, authenticateUser, findGroupByName, findGroupWithAttributesByName, findUserByKey, findUserByName, findUserWithAttributesByKey, findUserWithAttributesByName, findWebhookById, getCapabilitiesForNewUsers, getCurrentEventToken, getNewEvents, isGroupDirectGroupMember, isGroupNestedGroupMember, isUserDirectGroupMember, isUserNestedGroupMember, registerWebhook, removeGroup, removeGroupAttributes, removeGroupFromGroup, removeUser, removeUserAttributes, removeUserFromGroup, renameUser, searchDirectGroupRelationships, searchGroups, searchNestedGroupRelationships, searchUsers, searchUsersAllowingDuplicateNames, storeGroupAttributes, storeUserAttributes, unregisterWebhook, updateGroup, updateUser, updateUserCredential
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecoveryModeAwareApplicationService

public RecoveryModeAwareApplicationService(DirectoryManager directoryManager,
                                           PermissionManager permissionManager,
                                           DirectoryInstanceLoader directoryInstanceLoader,
                                           com.atlassian.event.api.EventPublisher eventPublisher,
                                           EventStore eventStore,
                                           WebhookRegistry webhookRegistry,
                                           ApplicationFactory applicationFactory,
                                           RecoveryModeService recoveryModeService)
Method Detail

getActiveDirectories

protected Collection<Directory> getActiveDirectories(Application application)
Description copied from class: ApplicationServiceGeneric
Given an application, retrieve all active directories associated with it.

Overrides:
getActiveDirectories in class ApplicationServiceGeneric
Parameters:
application - application to query
Returns:
list of active directories associated with application

isUserAuthorised

public boolean isUserAuthorised(Application application,
                                String username)
Specified by:
isUserAuthorised in interface ApplicationService
Overrides:
isUserAuthorised in class ApplicationServiceGeneric


Copyright © 2016 Atlassian. All Rights Reserved.