|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.util.modeler.BaseModelMBean org.apache.catalina.mbeans.GroupMBean
public class GroupMBean
A ModelMBean implementation for the
org.apache.catalina.Group
component.
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Registry registry
protected ManagedBean managed
ManagedBean
information describing this MBean.
Constructor Detail |
---|
public GroupMBean() throws MBeanException, RuntimeOperationsException
ModelMBean
with default
ModelMBeanInfo
information.
MBeanException
- if the initializer of an object
throws an exception
RuntimeOperationsException
- if an IllegalArgumentException
occursMethod Detail |
---|
public String[] getRoles()
public String[] getUsers()
public void addRole(String rolename)
Role
to those this group belongs to.
rolename
- Role name of the new rolepublic void removeRole(String rolename)
Role
from those this group belongs to.
rolename
- Role name of the old role
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |