Class GroupMBean

All Implemented Interfaces:
DynamicMBean, MBeanRegistration, ModelMBeanNotificationBroadcaster, NotificationBroadcaster

public class GroupMBean extends BaseModelMBean

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

Author:
Craig R. McClanahan
  • Field Details Link icon

    • registry Link icon

      protected final Registry registry
      The configuration information registry for our managed beans.
    • managed Link icon

      protected final ManagedBean managed
      The ManagedBean information describing this MBean.
  • Constructor Details Link icon

    • GroupMBean Link icon

      public GroupMBean()
  • Method Details Link icon

    • getRoles Link icon

      public String[] getRoles()
      Returns:
      the MBean Names of all authorized roles for this group.
    • getUsers Link icon

      public String[] getUsers()
      Returns:
      the MBean Names of all users that are members of this group.
    • addRole Link icon

      public void addRole(String rolename)
      Add a new Role to those this group belongs to.
      Parameters:
      rolename - Role name of the new role
    • removeRole Link icon

      public void removeRole(String rolename)
      Remove a Role from those this group belongs to.
      Parameters:
      rolename - Role name of the old role