public class GroupMBean extends BaseModelMBean
A ModelMBean implementation for the
org.apache.catalina.Group
component.
Modifier and Type | Field and Description |
---|---|
protected ManagedBean |
managed
The
ManagedBean information describing this MBean. |
protected Registry |
registry
The configuration information registry for our managed beans.
|
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
Constructor and Description |
---|
GroupMBean()
Construct a
ModelMBean with default
ModelMBeanInfo information. |
Modifier and Type | Method and Description |
---|---|
void |
addRole(String rolename)
Add a new
Role to 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
Role from 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, toString
protected 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-2021 Apache Software Foundation. All Rights Reserved.