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

public Class UserMBean

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.User 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
addGroup(String
Group name of the new group
groupname
)

Add a new Group to those this user belongs to.

public void
addRole(String
Role name of the new role
rolename
)

Add a new Role to those this user belongs to.

public String[]

Returns:

the MBean Names of all groups this user is a member of.
getGroups
()

public String[]

Returns:

the MBean Names of all roles assigned to this user.
getRoles
()

public void
removeGroup(String
Group name of the old group
groupname
)

Remove a Group from those this user belongs to.

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

Remove a Role from those this user 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

UserMBeanback to summary
public UserMBean()

Method Detail

addGroupback to summary
public void addGroup(String groupname)

Add a new Group to those this user belongs to.

Parameters
groupname:String

Group name of the new group

addRoleback to summary
public void addRole(String rolename)

Add a new Role to those this user belongs to.

Parameters
rolename:String

Role name of the new role

getGroupsback to summary
public String[] getGroups()
Returns:String[]

the MBean Names of all groups this user is a member of.

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

the MBean Names of all roles assigned to this user.

removeGroupback to summary
public void removeGroup(String groupname)

Remove a Group from those this user belongs to.

Parameters
groupname:String

Group name of the old group

removeRoleback to summary
public void removeRole(String rolename)

Remove a Role from those this user belongs to.

Parameters
rolename:String

Role name of the old role