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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description com.atlassian.util.concurrent.Promise<AccessMode>
getAccessMode()
Deprecated.since 7.0.1.CompletionStage<AccessMode>
getAccessModeCompletionStage()
com.atlassian.util.concurrent.Promise<Boolean>
isReadOnlyAccessModeEnabled()
Deprecated.since 7.0.1.CompletionStage<Boolean>
isReadOnlyAccessModeEnabledCompletionStage()
com.atlassian.util.concurrent.Promise<Boolean>
shouldEnforceReadOnlyAccess()
Deprecated.since 7.0.1.CompletionStage<Boolean>
shouldEnforceReadOnlyAccessCompletionStage()
com.atlassian.util.concurrent.Promise<Void>
updateAccessMode(AccessMode accessMode)
Deprecated.since 7.0.1.CompletionStage<Void>
updateAccessModeCompletionStage(AccessMode accessMode)
<T> com.atlassian.util.concurrent.Promise<T>
withReadOnlyAccessExemption(Callable<T> callable)
Deprecated.since 7.0.1.<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 Detail
-
getAccessMode
@Deprecated com.atlassian.util.concurrent.Promise<AccessMode> getAccessMode()
Deprecated.since 7.0.1. UsegetAccessModeCompletionStage()
instead.
-
updateAccessMode
@Deprecated com.atlassian.util.concurrent.Promise<Void> updateAccessMode(AccessMode accessMode) throws ServiceException
Deprecated.since 7.0.1. UseupdateAccessModeCompletionStage(AccessMode)
instead.- Throws:
ServiceException
-
isReadOnlyAccessModeEnabled
@Deprecated com.atlassian.util.concurrent.Promise<Boolean> isReadOnlyAccessModeEnabled()
Deprecated.since 7.0.1. UseisReadOnlyAccessModeEnabledCompletionStage()
instead.
-
shouldEnforceReadOnlyAccess
@Deprecated com.atlassian.util.concurrent.Promise<Boolean> shouldEnforceReadOnlyAccess()
Deprecated.since 7.0.1. UseshouldEnforceReadOnlyAccessCompletionStage()
instead.
-
withReadOnlyAccessExemption
@Deprecated <T> com.atlassian.util.concurrent.Promise<T> withReadOnlyAccessExemption(Callable<T> callable) throws ServiceException
Deprecated.since 7.0.1. UsewithReadOnlyAccessExemptionCompletionStage(Callable)
instead.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
-
getAccessModeCompletionStage
CompletionStage<AccessMode> getAccessModeCompletionStage()
- Since:
- 7.0.1
-
updateAccessModeCompletionStage
CompletionStage<Void> updateAccessModeCompletionStage(AccessMode accessMode) throws ServiceException
- Throws:
ServiceException
- Since:
- 7.0.1
-
isReadOnlyAccessModeEnabledCompletionStage
CompletionStage<Boolean> isReadOnlyAccessModeEnabledCompletionStage()
- Since:
- 7.0.1
-
shouldEnforceReadOnlyAccessCompletionStage
CompletionStage<Boolean> shouldEnforceReadOnlyAccessCompletionStage()
- Since:
- 7.0.1
-
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:
- 7.0.1
-
-