Class DefaultAccessModeManager
- java.lang.Object
-
- com.atlassian.confluence.internal.accessmode.DefaultAccessModeManager
-
- All Implemented Interfaces:
AccessModeManager
public class DefaultAccessModeManager extends Object implements AccessModeManager
- Since:
- 6.7.0
-
-
Field Summary
-
Fields inherited from interface com.atlassian.confluence.internal.accessmode.AccessModeManager
ACCESS_MODE
-
-
Constructor Summary
Constructors Constructor Description DefaultAccessModeManager(com.atlassian.config.ApplicationConfiguration applicationConfig, ClusterConfigurationHelperInternal clusterConfigurationHelperInternal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessMode
getAccessMode()
boolean
isReadOnlyAccessModeEnabled()
boolean
shouldEnforceReadOnlyAccess()
void
updateAccessMode(AccessMode accessMode)
This method should be called by Confluence core services only
-
-
-
Constructor Detail
-
DefaultAccessModeManager
public DefaultAccessModeManager(com.atlassian.config.ApplicationConfiguration applicationConfig, ClusterConfigurationHelperInternal clusterConfigurationHelperInternal)
-
-
Method Detail
-
getAccessMode
public AccessMode getAccessMode()
- Specified by:
getAccessMode
in interfaceAccessModeManager
- Returns:
- the maintenance info
-
updateAccessMode
public void updateAccessMode(AccessMode accessMode) throws com.atlassian.config.ConfigurationException
This method should be called by Confluence core services only- Specified by:
updateAccessMode
in interfaceAccessModeManager
- Parameters:
accessMode
- update the access mode for Confluence- Throws:
com.atlassian.config.ConfigurationException
-
isReadOnlyAccessModeEnabled
public boolean isReadOnlyAccessModeEnabled()
- Specified by:
isReadOnlyAccessModeEnabled
in interfaceAccessModeManager
- Returns:
- true if the current access mode is READ_ONLY
-
shouldEnforceReadOnlyAccess
public boolean shouldEnforceReadOnlyAccess()
- Specified by:
shouldEnforceReadOnlyAccess
in interfaceAccessModeManager
- Returns:
- true if we should enforce read only access (without exemptions)
-
-