Interface PlatformRestrictionsConfigManagementMBean


  • public interface PlatformRestrictionsConfigManagementMBean

    The PlatformRestrictionsConfigManagementMBean interface defines methods for restricting changes to the Rhino platform.

    The configuration within this config is stored as an OCBB in the Rhino management database. Once the restrictions have been activated, they cannot be disabled via a change to the configuration, by an MBean call, or by a command. The only way to remove the restrictions is to reinitialise the Rhino management database.

    Since:
    Rhino 3.1.0
    • Method Detail

      • disableDeployableUnitModification

        void disableDeployableUnitModification()
                                        throws ConfigurationException

        Disables modifications to Rhino’s deployment binaries. This includes the create namespace NamespaceManagementMBean.createNamespace(String) and remove namespace NamespaceManagementMBean.removeNamespace(java.lang.String) operations.

        This works by blocking the install and uninstall operations within Rhino. Once the functionality has been disabled, it cannot be enabled via a change to the configuration, by an MBean call, or by a command. There is purposefully no interface provided for disabling this configuration.

        Throws:
        ConfigurationException - if there is some error with setting the configuration
      • isDeployableUnitModificationDisabled

        boolean isDeployableUnitModificationDisabled()
                                              throws ConfigurationException

        Determine if modifications to Rhino’s deployment binaries have been disabled.

        Returns:
        true if modifications to Rhino’s deployment binaries have been disabled.
        Throws:
        ConfigurationException - if there is some error with reading the configuration