PermissionType
- The type of permission stored within this PermissionSet.public interface PermissionSet<PermissionType extends Permission>
Modifier and Type | Method and Description |
---|---|
void |
addPermissions(Set<PermissionType> permissions)
Adds the specified permissions, if not already granted.
|
Set<PermissionType> |
getPermissions()
Returns a Set which contains all permissions granted within this
permission set.
|
void |
removePermissions(Set<PermissionType> permissions)
Removes each of the specified permissions, if granted.
|
Set<PermissionType> getPermissions() throws org.apache.guacamole.GuacamoleException
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving permissions, or if permissions
cannot be retrieved due to lack of permissions to do so.void addPermissions(Set<PermissionType> permissions) throws org.apache.guacamole.GuacamoleException
permissions
- The permissions to add.org.apache.guacamole.GuacamoleException
- If an error occurs while adding the permissions, or if permission to
add permissions is denied.void removePermissions(Set<PermissionType> permissions) throws org.apache.guacamole.GuacamoleException
permissions
- The permissions to remove.org.apache.guacamole.GuacamoleException
- If an error occurs while removing the permissions, or if permission
to remove permissions is denied.Copyright © 2016. All rights reserved.