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(java.lang.String rolename)
Add a new
Role to those this group belongs to. |
java.lang.String[] |
getRoles()
Return the MBean Names of all authorized roles for this group.
|
java.lang.String[] |
getUsers()
Return the MBean Names of all users that are members of this group.
|
void |
removeRole(java.lang.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 javax.management.MBeanException, javax.management.RuntimeOperationsException
ModelMBean
with default
ModelMBeanInfo
information.javax.management.MBeanException
- if the initializer of an object
throws an exceptionjavax.management.RuntimeOperationsException
- if an IllegalArgumentException
occurspublic java.lang.String[] getRoles()
public java.lang.String[] getUsers()
public void addRole(java.lang.String rolename)
Role
to those this group belongs to.rolename
- Role name of the new rolepublic void removeRole(java.lang.String rolename)
Role
from those this group belongs to.rolename
- Role name of the old roleCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.