public class DefaultAccessModeManager extends Object implements AccessModeManager
ACCESS_MODE
Constructor and Description |
---|
DefaultAccessModeManager(com.atlassian.config.ApplicationConfiguration applicationConfig,
ClusterConfigurationHelperInternal clusterConfigurationHelperInternal) |
Modifier and Type | Method and Description |
---|---|
AccessMode |
getAccessMode() |
boolean |
isReadOnlyAccessModeEnabled() |
boolean |
shouldEnforceReadOnlyAccess() |
void |
updateAccessMode(AccessMode accessMode)
This method should be called by Confluence core services only
|
public DefaultAccessModeManager(com.atlassian.config.ApplicationConfiguration applicationConfig, ClusterConfigurationHelperInternal clusterConfigurationHelperInternal)
public AccessMode getAccessMode()
getAccessMode
in interface AccessModeManager
public void updateAccessMode(AccessMode accessMode) throws com.atlassian.config.ConfigurationException
updateAccessMode
in interface AccessModeManager
accessMode
- update the access mode for Confluencecom.atlassian.config.ConfigurationException
public boolean isReadOnlyAccessModeEnabled()
isReadOnlyAccessModeEnabled
in interface AccessModeManager
public boolean shouldEnforceReadOnlyAccess()
shouldEnforceReadOnlyAccess
in interface AccessModeManager
Copyright © 2003–2021 Atlassian. All rights reserved.