|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.modeler.BaseModelMBean org.apache.catalina.mbeans.GroupMBean
A ModelMBean implementation for the
org.apache.catalina.Group
component.
Field Summary | |
protected org.apache.commons.modeler.ManagedBean |
managed
The ManagedBean information describing this MBean. |
protected javax.management.MBeanServer |
mserver
The MBeanServer in which we are registered. |
protected org.apache.commons.modeler.Registry |
registry
The configuration information registry for our managed beans. |
Fields inherited from class org.apache.commons.modeler.BaseModelMBean |
attributeBroadcaster, attributes, generalBroadcaster, info, oname, resource, resourceType, source |
Constructor Summary | |
GroupMBean()
Construct a ModelMBean with default
ModelMBeanInfo information. |
Method Summary | |
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. |
Methods inherited from class org.apache.commons.modeler.BaseModelMBean |
addAttributeChangeNotificationListener, addNotificationListener, createDefaultModelMBeanInfo, createResource, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, getRegistry, initModelInfo, invoke, isModelMBeanInfoValid, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModeledType, setModelMBeanInfo, setRegistry, store, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected org.apache.commons.modeler.Registry registry
protected javax.management.MBeanServer mserver
MBeanServer
in which we are registered.
protected org.apache.commons.modeler.ManagedBean managed
ManagedBean
information describing this MBean.
Constructor Detail |
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 exception
javax.management.RuntimeOperationsException
- if an IllegalArgumentException
occursMethod Detail |
public 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 role
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |