Class GroupMBean

  • All Implemented Interfaces:
    javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.modelmbean.ModelMBeanNotificationBroadcaster, javax.management.NotificationBroadcaster

    public class GroupMBean
    extends BaseModelMBean

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

    Author:
    Craig R. McClanahan
    • Field Detail

      • 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 Detail

      • GroupMBean

        public GroupMBean()
    • Method Detail

      • getRoles

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

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

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

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