public class GroupMBean extends BaseModelMBean
A ModelMBean implementation for the
 org.apache.catalina.Group component.
| Modifier and Type | Field and Description | 
|---|---|
| protected ManagedBean | managedThe  ManagedBeaninformation describing this MBean. | 
| protected Registry | registryThe configuration information registry for our managed beans. | 
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType| Constructor and Description | 
|---|
| GroupMBean()Construct a  ModelMBeanwith defaultModelMBeanInfoinformation. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addRole(String rolename)Add a new  Roleto those this group belongs to. | 
| String[] | getRoles()Return the MBean Names of all authorized roles for this group. | 
| String[] | getUsers()Return the MBean Names of all users that are members of this group. | 
| void | removeRole(String rolename)Remove a  Rolefrom those this group belongs to. | 
addAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, invoke, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedBean, setManagedResource, toStringprotected Registry registry
protected ManagedBean managed
ManagedBean information describing this MBean.public GroupMBean()
           throws MBeanException,
                  RuntimeOperationsException
ModelMBean with default
 ModelMBeanInfo information.MBeanException - if the initializer of an object
  throws an exceptionRuntimeOperationsException - if an IllegalArgumentException
  occurspublic String[] getRoles()
public String[] getUsers()
public void addRole(String rolename)
Role to those this group belongs to.rolename - Role name of the new roleCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.