Interface RemoteAccessModeService
- All Known Implementing Classes:
RemoteAccessModeServiceImpl
@ExperimentalApi
public interface RemoteAccessModeService
AccessModeService implementation that communicates with Confluence remotely using the Confluence REST API.
Provides future returning equivalents for the methods in AccessModeService.
-
Method Summary
Modifier and TypeMethodDescriptionupdateAccessModeCompletionStage(AccessMode accessMode) <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.
-
Method Details
-
getAccessModeCompletionStage
CompletionStage<AccessMode> getAccessModeCompletionStage()- Since:
- 9.0
-
updateAccessModeCompletionStage
CompletionStage<Void> updateAccessModeCompletionStage(AccessMode accessMode) throws ServiceException - Throws:
ServiceException- Since:
- 9.0
-
isReadOnlyAccessModeEnabledCompletionStage
CompletionStage<Boolean> isReadOnlyAccessModeEnabledCompletionStage()- Since:
- 9.0
-
shouldEnforceReadOnlyAccessCompletionStage
CompletionStage<Boolean> shouldEnforceReadOnlyAccessCompletionStage()- Since:
- 9.0
-
withReadOnlyAccessExemptionCompletionStage
<T> CompletionStage<T> withReadOnlyAccessExemptionCompletionStage(Callable<T> callable) throws ServiceException Execute a method that needs to be exempt from read-only access check in the permission manager layer.- Type Parameters:
T- the return type of the method- Parameters:
callable- the method- Returns:
- the value returned by the callable method
- Throws:
ServiceException- Since:
- 9.0
-