public class RemoteAccessModeServiceImpl extends AbstractRemoteService<AccessModeService> implements RemoteAccessModeService
provider
Constructor and Description |
---|
RemoteAccessModeServiceImpl(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Promise<AccessMode> |
getAccessMode()
Deprecated.
since 7.0.1. Use
getAccessModeCompletionStage() instead. |
CompletionStage<AccessMode> |
getAccessModeCompletionStage() |
com.atlassian.util.concurrent.Promise<Boolean> |
isReadOnlyAccessModeEnabled()
'Proxied' method to check if readonly access mode is enabled.
|
CompletionStage<Boolean> |
isReadOnlyAccessModeEnabledCompletionStage() |
com.atlassian.util.concurrent.Promise<Boolean> |
shouldEnforceReadOnlyAccess() |
CompletionStage<Boolean> |
shouldEnforceReadOnlyAccessCompletionStage() |
com.atlassian.util.concurrent.Promise<Void> |
updateAccessMode(AccessMode accessMode)
'Proxied' method to update the access mode.
|
CompletionStage<Void> |
updateAccessModeCompletionStage(AccessMode accessMode) |
<T> com.atlassian.util.concurrent.Promise<T> |
withReadOnlyAccessExemption(Callable<T> callable)
Execute a method that needs to be exempt from read-only access check in the permission manager layer.
|
<T> CompletionStage<T> |
withReadOnlyAccessExemptionCompletionStage(Callable<T> callable)
Execute a method that needs to be exempt from read-only access check in the permission manager layer.
|
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, deleteFuture, deleteFuture, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, putCompletionStage, putFuture
public RemoteAccessModeServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
@Deprecated public com.atlassian.util.concurrent.Promise<AccessMode> getAccessMode()
getAccessModeCompletionStage()
instead.getAccessMode
in interface RemoteAccessModeService
public com.atlassian.util.concurrent.Promise<Void> updateAccessMode(AccessMode accessMode) throws ServiceException
updateAccessMode
in interface RemoteAccessModeService
accessMode
- the access Mode to 'set'.ServiceException
- the exception is thrown if the dark feature is not enabled or the access mode cannot be updated.public com.atlassian.util.concurrent.Promise<Boolean> isReadOnlyAccessModeEnabled()
isReadOnlyAccessModeEnabled
in interface RemoteAccessModeService
public com.atlassian.util.concurrent.Promise<Boolean> shouldEnforceReadOnlyAccess()
shouldEnforceReadOnlyAccess
in interface RemoteAccessModeService
public <T> com.atlassian.util.concurrent.Promise<T> withReadOnlyAccessExemption(Callable<T> callable) throws ServiceException
RemoteAccessModeService
withReadOnlyAccessExemption
in interface RemoteAccessModeService
T
- the return type of the methodcallable
- the methodServiceException
public CompletionStage<AccessMode> getAccessModeCompletionStage()
getAccessModeCompletionStage
in interface RemoteAccessModeService
public CompletionStage<Void> updateAccessModeCompletionStage(AccessMode accessMode) throws ServiceException
updateAccessModeCompletionStage
in interface RemoteAccessModeService
ServiceException
public CompletionStage<Boolean> isReadOnlyAccessModeEnabledCompletionStage()
isReadOnlyAccessModeEnabledCompletionStage
in interface RemoteAccessModeService
public CompletionStage<Boolean> shouldEnforceReadOnlyAccessCompletionStage()
shouldEnforceReadOnlyAccessCompletionStage
in interface RemoteAccessModeService
public <T> CompletionStage<T> withReadOnlyAccessExemptionCompletionStage(Callable<T> callable) throws ServiceException
RemoteAccessModeService
withReadOnlyAccessExemptionCompletionStage
in interface RemoteAccessModeService
T
- the return type of the methodcallable
- the methodServiceException
Copyright © 2003–2020 Atlassian. All rights reserved.