Apache Tomcat 7.0.28

org.apache.catalina.mbeans
Class GroupMBean

java.lang.Object
  extended by org.apache.tomcat.util.modeler.BaseModelMBean
      extended by org.apache.catalina.mbeans.GroupMBean
All Implemented Interfaces:
DynamicMBean, MBeanRegistration, ModelMBeanNotificationBroadcaster, NotificationBroadcaster

public class GroupMBean
extends BaseModelMBean

A ModelMBean implementation for the org.apache.catalina.Group component.

Version:
$Id: GroupMBean.java 1085323 2011-03-25 11:20:50Z markt $
Author:
Craig R. McClanahan

Field Summary
protected  ManagedBean managed
          The ManagedBean information describing this MBean.
protected  Registry registry
          The configuration information registry for our managed beans.
 
Fields inherited from class org.apache.tomcat.util.modeler.BaseModelMBean
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
 
Constructor Summary
GroupMBean()
          Construct a ModelMBean with default ModelMBeanInfo information.
 
Method Summary
 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.
 
Methods inherited from class org.apache.tomcat.util.modeler.BaseModelMBean
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

registry

protected Registry registry
The configuration information registry for our managed beans.


managed

protected ManagedBean managed
The ManagedBean information describing this MBean.

Constructor Detail

GroupMBean

public GroupMBean()
           throws MBeanException,
                  RuntimeOperationsException
Construct a ModelMBean with default ModelMBeanInfo information.

Throws:
MBeanException - if the initializer of an object throws an exception
RuntimeOperationsException - if an IllegalArgumentException occurs
Method Detail

getRoles

public String[] getRoles()
Return the MBean Names of all authorized roles for this group.


getUsers

public String[] getUsers()
Return the MBean Names of all users that are members of this group.


addRole

public void addRole(String rolename)
Add a new Role to those this group belongs to.

Parameters:
rolename - Role name of the new role

removeRole

public void removeRole(String rolename)
Remove a Role from those this group belongs to.

Parameters:
rolename - Role name of the old role

Apache Tomcat 7.0.28

Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.