Group

Interface Group

All Superinterfaces:
Principal
public interface Group
extends Principal

This interface is used to represent a group of principals. (A principal represents an entity such as an individual user or a company).

Note that Group extends Principal. Thus, either a Principal or a Group can be passed as an argument to methods containing a Principal parameter. For example, you can add either a Principal or a Group to a Group object by calling the object's addMember method, passing it the Principal or Group.

Methods

addMember

boolean addMember(Principal user)

Adds the specified member to the group.

Parameters:
user - the principal to add