@ExperimentalApi
@ParametersAreNonnullByDefault
@ReturnValuesAreNonnullByDefault
public interface AccessModeService
| Modifier and Type | Method and Description |
|---|---|
AccessMode |
getAccessMode() |
boolean |
isReadOnlyAccessModeEnabled() |
boolean |
shouldEnforceReadOnlyAccess() |
void |
updateAccessMode(AccessMode accessMode)
Update the access mode if the current user is a sysadmin
|
<T> T |
withReadOnlyAccessExemption(Callable<T> callable)
Execute a method that needs to be exempt from read-only access check in the permission manager layer.
|
AccessMode getAccessMode()
void updateAccessMode(AccessMode accessMode) throws ServiceException
accessMode - update the access mode for ConfluenceServiceException - the exception is thrown if the dark feature is not enabled or the access mode cannot be updatedboolean isReadOnlyAccessModeEnabled()
boolean shouldEnforceReadOnlyAccess()
<T> T withReadOnlyAccessExemption(Callable<T> callable) throws ServiceException
T - the return type of the methodcallable - the methodServiceExceptionCopyright © 2003–2020 Atlassian. All rights reserved.