Class DefaultAccessModeManager

    • Constructor Detail

      • DefaultAccessModeManager

        public DefaultAccessModeManager​(com.atlassian.config.ApplicationConfiguration applicationConfig,
                                        ClusterConfigurationHelperInternal clusterConfigurationHelperInternal)
    • Method Detail

      • 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 interface AccessModeManager
        Parameters:
        accessMode - update the access mode for Confluence
        Throws:
        com.atlassian.config.ConfigurationException
      • shouldEnforceReadOnlyAccess

        public boolean shouldEnforceReadOnlyAccess()
        Specified by:
        shouldEnforceReadOnlyAccess in interface AccessModeManager
        Returns:
        true if we should enforce read only access (without exemptions)