public class UserMBean extends BaseModelMBean
A ModelMBean implementation for the
org.apache.catalina.User
component.
Modifier and Type | Field and 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 and Description |
---|
UserMBean()
Construct a
ModelMBean with default
ModelMBeanInfo information. |
Modifier and Type | Method and 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 UserMBean() throws javax.management.MBeanException, javax.management.RuntimeOperationsException
ModelMBean
with default
ModelMBeanInfo
information.javax.management.MBeanException
- if the initializer of an object
throws an exceptionjavax.management.RuntimeOperationsException
- if an IllegalArgumentException
occurspublic 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.