Class UserMBean

    • 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

      • UserMBean

        public UserMBean()
    • Method Detail

      • getGroups

        public String[] getGroups()
        Returns:
        the MBean Names of all groups this user is a member of.
      • getRoles

        public String[] getRoles()
        Returns:
        the MBean Names of all roles assigned to this user.
      • addGroup

        public void addGroup​(String groupname)
        Add a new Group to those this user belongs to.
        Parameters:
        groupname - Group name of the new group
      • addRole

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

        public void removeGroup​(String groupname)
        Remove a Group from those this user belongs to.
        Parameters:
        groupname - Group name of the old group
      • removeRole

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