PermissionType
- The type of permissions being added and removed.public class PermissionSetPatch<PermissionType extends Permission> extends Object
Constructor and Description |
---|
PermissionSetPatch() |
Modifier and Type | Method and Description |
---|---|
void |
addPermission(PermissionType permission)
Queues the given permission to be added.
|
void |
apply(PermissionSet<PermissionType> permissionSet)
Applies all queued changes to the given permission set.
|
void |
removePermission(PermissionType permission)
Queues the given permission to be removed.
|
public void addPermission(PermissionType permission)
permission
- The permission to add.public void removePermission(PermissionType permission)
permission
- The permission to remove.public void apply(PermissionSet<PermissionType> permissionSet) throws GuacamoleException
permissionSet
- The permission set to add and remove permissions from.GuacamoleException
- If an error occurs while manipulating the permissions of the given
permission set.Copyright © 2017. All rights reserved.