This class represents a Group of Users in the system that are associated
with specific entity or resource. The users belonging to the Group may have
various Roles. The Permissions to perform actions upon the resource depend
on the Roles in the Group that they are assigned.
author: Rafal Krzewski author: Henning P. Schmiedehausen version: $Id: Group.java 534527 2007-05-02 16:10:59Z tv $
Grants a Role in this Group to an User.
Parameters: user - An User. Parameters: role - A Role. throws: TurbineSecurityException - if there is a problem while assigningthe Role.
Grants Roles in this Group to an User.
Parameters: user - An User. Parameters: roleSet - A RoleSet. throws: TurbineSecurityException - if there is a problem while assigningthe Roles.
Revokes a Role in this Group from an User.
Parameters: user - An User. Parameters: role - A Role. throws: TurbineSecurityException - if there is a problem while unassigningthe Role.
Revokes Roles in this group from an User.
Parameters: user - An User. Parameters: roleSet - a RoleSet. throws: TurbineSecurityException - if there is a problem while unassigningthe Roles.