Top Description Fields Constructors Methods
org.apache.catalina.mbeans

public Class GroupMBean

extends BaseModelMBean
Class Inheritance
Imports
java.util.ArrayList, .Iterator, .List, javax.management.MalformedObjectNameException, .ObjectName, org.apache.catalina.Group, .Role, .User, org.apache.tomcat.util.modeler.BaseModelMBean, .ManagedBean, .Registry, org.apache.tomcat.util.res.StringManager

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

Author
Craig R. McClanahan

Field Summary

Modifier and TypeField and Description
protected final ManagedBean
managed

The ManagedBean information describing this MBean.

protected final Registry
registry

The configuration information registry for our managed beans.

private static final StringManager
Inherited from org.apache.tomcat.util.modeler.BaseModelMBean:
attributeBroadcastergeneralBroadcastermanagedBeanonameresourceresourceType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addRole(String
Role name of the new role
rolename
)

Add a new Role to those this group belongs to.

public String[]

Returns:

the MBean Names of all authorized roles for this group.
getRoles
()

public String[]

Returns:

the MBean Names of all users that are members of this group.
getUsers
()

public void
removeRole(String
Role name of the old role
rolename
)

Remove a Role from those this group belongs to.

Inherited from org.apache.tomcat.util.modeler.BaseModelMBean:
addAttributeChangeNotificationListeneraddNotificationListenergetAttributegetAttributesgetClassNamegetJmxNamegetManagedResourcegetMBeanInfogetModelerTypegetNotificationInfogetObjectNameinvokepostDeregisterpostRegisterpreDeregisterpreRegisterremoveAttributeChangeNotificationListenerremoveNotificationListenersendAttributeChangeNotificationsendAttributeChangeNotificationsendNotificationsendNotificationsetAttributesetAttributessetManagedBeansetManagedResourcetoString

Field Detail

managedback to summary
protected final ManagedBean managed

The ManagedBean information describing this MBean.

registryback to summary
protected final Registry registry

The configuration information registry for our managed beans.

smback to summary
private static final StringManager sm

Hides org.apache.tomcat.util.modeler.BaseModelMBean.sm.

Constructor Detail

GroupMBeanback to summary
public GroupMBean()

Method Detail

addRoleback to summary
public void addRole(String rolename)

Add a new Role to those this group belongs to.

Parameters
rolename:String

Role name of the new role

getRolesback to summary
public String[] getRoles()
Returns:String[]

the MBean Names of all authorized roles for this group.

getUsersback to summary
public String[] getUsers()
Returns:String[]

the MBean Names of all users that are members of this group.

removeRoleback to summary
public void removeRole(String rolename)

Remove a Role from those this group belongs to.

Parameters
rolename:String

Role name of the old role