javax.management.DynamicMBean
, javax.management.MBeanRegistration
, javax.management.modelmbean.ModelMBeanNotificationBroadcaster
, javax.management.NotificationBroadcaster
public class UserMBean extends BaseModelMBean
A ModelMBean implementation for the
org.apache.catalina.User
component.
Modifier and Type | Field | Description |
---|---|---|
protected ManagedBean |
managed |
The
ManagedBean information describing this MBean. |
protected Registry |
registry |
The configuration information registry for our managed beans.
|
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
Constructor | Description |
---|---|
UserMBean() |
Modifier and Type | Method | Description |
---|---|---|
void |
addGroup(java.lang.String groupname) |
Add a new
Group to those this user belongs to. |
void |
addRole(java.lang.String rolename) |
Add a new
Role to those this user belongs to. |
java.lang.String[] |
getGroups() |
|
java.lang.String[] |
getRoles() |
|
void |
removeGroup(java.lang.String groupname) |
Remove a
Group from those this user belongs to. |
void |
removeRole(java.lang.String rolename) |
Remove a
Role from those this user belongs to. |
addAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, invoke, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedBean, setManagedResource, toString
protected final Registry registry
protected final ManagedBean managed
ManagedBean
information describing this MBean.public java.lang.String[] getGroups()
public java.lang.String[] getRoles()
public void addGroup(java.lang.String groupname)
Group
to those this user belongs to.groupname
- Group name of the new grouppublic void addRole(java.lang.String rolename)
Role
to those this user belongs to.rolename
- Role name of the new rolepublic void removeGroup(java.lang.String groupname)
Group
from those this user belongs to.groupname
- Group name of the old grouppublic void removeRole(java.lang.String rolename)
Role
from those this user belongs to.rolename
- Role name of the old roleCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.