This class represents a role played by the User associated with the
current Session.
author: Frank Y. Kim author: John D. McNally author: Brett McLaughlin version: $Id: TurbineRole.java 278822 2005-09-05 19:53:05Z henning $
Creates a new Role in the system.
Parameters: name - The name of the new Role. An object representing the new Role. throws: TurbineSecurityException - if the Role could not be created.
Grants a Permission to this Role.
Parameters: permission - A Permission. throws: TurbineSecurityException - if there is a problem while assigningthe Permission.
Grants Permissions from a PermissionSet to this Role.
Parameters: permissionSet - A PermissionSet. throws: TurbineSecurityException - if there is a problem while assigningthe Permissions.
Revokes a Permission from this Role.
Parameters: permission - A Permission. throws: TurbineSecurityException - if there is a problem while unassigningthe Permission.
Revokes Permissions from a PermissionSet from this Role.
Parameters: permissionSet - A PermissionSet. throws: TurbineSecurityException - if there is a problem while unassigningthe Permissions.