Class GroupMBean

All Implemented Interfaces:
DynamicMBean, MBeanRegistration, ModelMBeanNotificationBroadcaster, NotificationBroadcaster

public class GroupMBean extends BaseModelMBean

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

  • Field Details

    • registry

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

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

    • GroupMBean

      public GroupMBean()
      Default constructor for GroupMBean.
  • Method Details

    • getRoles

      public String[] getRoles()
      Returns the MBean ObjectNames of all authorized roles for this group.
      Returns:
      Array of MBean ObjectName strings for all roles
    • getUsers

      public String[] getUsers()
      Returns the MBean ObjectNames of all users that are members of this group.
      Returns:
      Array of MBean ObjectName strings for all users
    • addRole

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

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