Method Summary |
|
public boolean | add(Permission permission) Adds a Permission to this PermissionSet.
Parameters: permission - A Permission. |
public boolean | add(Collection permissions) Adds the Permissions in a Collection to this PermissionSet.
Parameters: permissions - A Collection of Permissions. |
public boolean | add(PermissionSet permissionSet) Adds the Permissions in another PermissionSet to this
PermissionSet.
Parameters: permissionSet - A PermissionSet. |
public boolean | contains(Permission permission) Checks whether this PermissionSet contains a Permission.
Parameters: permission - A Permission. |
public Permission | getPermission(String permissionName) Returns a Permission with the given name, if it is contained in
this PermissionSet.
Parameters: permissionName - Name of Permission. |
public Permission | getPermissionById(int permissionId) Returns a Permission with the given id, if it is contained in
this PermissionSet.
Parameters: permissionId - Id of the Permission. |
public Permission | getPermissionByName(String permissionName) Returns a Permission with the given name, if it is contained in
this PermissionSet.
Parameters: permissionName - Name of Permission. |
public Permission[] | getPermissionsArray() Returns an Array of Permissions in this PermissionSet. |
public boolean | remove(Permission permission) Removes a Permission from this PermissionSet.
Parameters: permission - A Permission. |
public String | toString() |