Class GroupMBean
java.lang.Object
org.apache.tomcat.util.modeler.BaseModelMBean
org.apache.catalina.mbeans.GroupMBean
- All Implemented Interfaces:
DynamicMBean, MBeanRegistration, ModelMBeanNotificationBroadcaster, NotificationBroadcaster
A ModelMBean implementation for the org.apache.catalina.Group component.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ManagedBeanTheManagedBeaninformation describing this MBean.protected final RegistryThe configuration information registry for our managed beans.Fields inherited from class BaseModelMBean
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a newRoleto those this group belongs to.String[]getRoles()Returns the MBean ObjectNames of all authorized roles for this group.String[]getUsers()Returns the MBean ObjectNames of all users that are members of this group.voidremoveRole(String rolename) Remove aRolefrom those this group belongs to.Methods inherited from class BaseModelMBean
addAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, invoke, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedBean, setManagedResource, toString
-
Field Details
-
registry
The configuration information registry for our managed beans. -
managed
TheManagedBeaninformation describing this MBean.
-
-
Constructor Details
-
GroupMBean
public GroupMBean()Default constructor for GroupMBean.
-
-
Method Details
-
getRoles
Returns the MBean ObjectNames of all authorized roles for this group.- Returns:
- Array of MBean ObjectName strings for all roles
-
getUsers
Returns the MBean ObjectNames of all users that are members of this group.- Returns:
- Array of MBean ObjectName strings for all users
-
addRole
-
removeRole
-