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
-
-
Field Summary
Fields Modifier and Type Field Description static String
MBEAN_NAME
The name of this MBean, equal to the string "PlatformRestrictionsConfig".static String
OBJECT_NAME
The JMX Object Name of this MBean.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
disableDeployableUnitModification()
Disables modifications to Rhino’s deployment binaries.boolean
isDeployableUnitModificationDisabled()
Determine if modifications to Rhino’s deployment binaries have been disabled.
-
-
-
Field Detail
-
MBEAN_NAME
static final String MBEAN_NAME
The name of this MBean, equal to the string "PlatformRestrictionsConfig".
- See Also:
- Constant Field Values
-
OBJECT_NAME
static final String OBJECT_NAME
The JMX Object Name of this MBean.
- See Also:
- Constant Field Values
-
-
Method Detail
-
disableDeployableUnitModification
void disableDeployableUnitModification() throws ConfigurationException
Disables modifications to Rhino’s deployment binaries. This includes the create namespace
NamespaceManagementMBean.createNamespace(String)
and remove namespaceNamespaceManagementMBean.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
-
-