Package org.apache.catalina.mbeans
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.
- Author:
- Craig R. McClanahan
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ManagedBean
TheManagedBean
information describing this MBean.protected final Registry
The configuration information registry for our managed beans.Fields inherited from class org.apache.tomcat.util.modeler.BaseModelMBean
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.tomcat.util.modeler.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
TheManagedBean
information describing this MBean.
-
-
Constructor Details
-
GroupMBean
public GroupMBean()
-
-
Method Details
-
getRoles
- Returns:
- the MBean Names of all authorized roles for this group.
-
getUsers
- Returns:
- the MBean Names of all users that are members of this group.
-
addRole
Add a newRole
to those this group belongs to.- Parameters:
rolename
- Role name of the new role
-
removeRole
Remove aRole
from those this group belongs to.- Parameters:
rolename
- Role name of the old role
-