Package org.apache.catalina.mbeans
Class GroupMBean
- java.lang.Object
- 
- org.apache.tomcat.util.modeler.BaseModelMBean
- 
- org.apache.catalina.mbeans.GroupMBean
 
 
- 
- All Implemented Interfaces:
- javax.management.DynamicMBean,- javax.management.MBeanRegistration,- javax.management.modelmbean.ModelMBeanNotificationBroadcaster,- javax.management.NotificationBroadcaster
 
 public class GroupMBean extends BaseModelMBean A ModelMBean implementation for the org.apache.catalina.Groupcomponent.- Author:
- Craig R. McClanahan
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected ManagedBeanmanagedTheManagedBeaninformation describing this MBean.protected RegistryregistryThe configuration information registry for our managed beans.- 
Fields inherited from class org.apache.tomcat.util.modeler.BaseModelMBeanattributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
 
- 
 - 
Constructor SummaryConstructors Constructor Description GroupMBean()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRole(java.lang.String rolename)Add a newRoleto those this group belongs to.java.lang.String[]getRoles()java.lang.String[]getUsers()voidremoveRole(java.lang.String rolename)Remove aRolefrom those this group belongs to.- 
Methods inherited from class org.apache.tomcat.util.modeler.BaseModelMBeanaddAttributeChangeNotificationListener, 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 Detail- 
registryprotected final Registry registry The configuration information registry for our managed beans.
 - 
managedprotected final ManagedBean managed TheManagedBeaninformation describing this MBean.
 
- 
 - 
Method Detail- 
getRolespublic java.lang.String[] getRoles() - Returns:
- the MBean Names of all authorized roles for this group.
 
 - 
getUserspublic java.lang.String[] getUsers() - Returns:
- the MBean Names of all users that are members of this group.
 
 - 
addRolepublic void addRole(java.lang.String rolename) Add a newRoleto those this group belongs to.- Parameters:
- rolename- Role name of the new role
 
 - 
removeRolepublic void removeRole(java.lang.String rolename) Remove aRolefrom those this group belongs to.- Parameters:
- rolename- Role name of the old role
 
 
- 
 
-