@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.
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.util.concurrent.Promise<AccessMode> |
getAccessMode() |
com.atlassian.util.concurrent.Promise<Boolean> |
isReadOnlyAccessModeEnabled() |
com.atlassian.util.concurrent.Promise<Boolean> |
shouldEnforceReadOnlyAccess() |
com.atlassian.util.concurrent.Promise<Void> |
updateAccessMode(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.
|
com.atlassian.util.concurrent.Promise<AccessMode> getAccessMode()
com.atlassian.util.concurrent.Promise<Void> updateAccessMode(AccessMode accessMode) throws ServiceException
ServiceExceptioncom.atlassian.util.concurrent.Promise<Boolean> isReadOnlyAccessModeEnabled()
com.atlassian.util.concurrent.Promise<Boolean> shouldEnforceReadOnlyAccess()
<T> com.atlassian.util.concurrent.Promise<T> withReadOnlyAccessExemption(Callable<T> callable) throws ServiceException
T - the return type of the methodcallable - the methodServiceExceptionCopyright © 2003–2020 Atlassian. All rights reserved.