public interface SystemPermissionSet extends PermissionSet<SystemPermission>
Modifier and Type | Method and Description |
---|---|
void |
addPermission(SystemPermission.Type permission)
Adds the specified permission.
|
void |
addPermissions(Set<SystemPermission> permissions)
Adds the specified permissions, if not already granted.
|
Set<SystemPermission> |
getPermissions()
Returns a Set which contains all permissions granted within this
permission set.
|
boolean |
hasPermission(SystemPermission.Type permission)
Tests whether the permission of the given type is granted.
|
void |
removePermission(SystemPermission.Type permission)
Removes the specified permission.
|
void |
removePermissions(Set<SystemPermission> permissions)
Removes each of the specified permissions, if granted.
|
boolean hasPermission(SystemPermission.Type permission) throws org.apache.guacamole.GuacamoleException
permission
- The permission to check.org.apache.guacamole.GuacamoleException
- If an error occurs while checking permissions, or if permissions
cannot be checked due to lack of permissions to do so.void addPermission(SystemPermission.Type permission) throws org.apache.guacamole.GuacamoleException
permission
- The permission to add.org.apache.guacamole.GuacamoleException
- If an error occurs while adding the permission, or if permission to
add permissions is denied.void removePermission(SystemPermission.Type permission) throws org.apache.guacamole.GuacamoleException
permission
- The permission to remove.org.apache.guacamole.GuacamoleException
- If an error occurs while removing the permission, or if permission
to remove permissions is denied.Set<SystemPermission> getPermissions() throws org.apache.guacamole.GuacamoleException
PermissionSet
getPermissions
in interface PermissionSet<SystemPermission>
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<SystemPermission> permissions) throws org.apache.guacamole.GuacamoleException
PermissionSet
addPermissions
in interface PermissionSet<SystemPermission>
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<SystemPermission> permissions) throws org.apache.guacamole.GuacamoleException
PermissionSet
removePermissions
in interface PermissionSet<SystemPermission>
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 © 2017. All rights reserved.