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, putFuturepublic RemoteAccessModeServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
@Deprecated public com.atlassian.util.concurrent.Promise<AccessMode> getAccessMode()
getAccessModeCompletionStage() instead.getAccessMode in interface RemoteAccessModeServicepublic com.atlassian.util.concurrent.Promise<Void> updateAccessMode(AccessMode accessMode) throws ServiceException
updateAccessMode in interface RemoteAccessModeServiceaccessMode - 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 RemoteAccessModeServicepublic com.atlassian.util.concurrent.Promise<Boolean> shouldEnforceReadOnlyAccess()
shouldEnforceReadOnlyAccess in interface RemoteAccessModeServicepublic <T> com.atlassian.util.concurrent.Promise<T> withReadOnlyAccessExemption(Callable<T> callable) throws ServiceException
RemoteAccessModeServicewithReadOnlyAccessExemption in interface RemoteAccessModeServiceT - the return type of the methodcallable - the methodServiceExceptionpublic CompletionStage<AccessMode> getAccessModeCompletionStage()
getAccessModeCompletionStage in interface RemoteAccessModeServicepublic CompletionStage<Void> updateAccessModeCompletionStage(AccessMode accessMode) throws ServiceException
updateAccessModeCompletionStage in interface RemoteAccessModeServiceServiceExceptionpublic CompletionStage<Boolean> isReadOnlyAccessModeEnabledCompletionStage()
isReadOnlyAccessModeEnabledCompletionStage in interface RemoteAccessModeServicepublic CompletionStage<Boolean> shouldEnforceReadOnlyAccessCompletionStage()
shouldEnforceReadOnlyAccessCompletionStage in interface RemoteAccessModeServicepublic <T> CompletionStage<T> withReadOnlyAccessExemptionCompletionStage(Callable<T> callable) throws ServiceException
RemoteAccessModeServicewithReadOnlyAccessExemptionCompletionStage in interface RemoteAccessModeServiceT - the return type of the methodcallable - the methodServiceExceptionCopyright © 2003–2023 Atlassian. All rights reserved.