GUACAMOLE-5: Add sharing profile permissions.

This commit is contained in:
Michael Jumper
2016-07-15 12:49:25 -07:00
parent eededc33ca
commit a2ad7a69ab
3 changed files with 24 additions and 0 deletions

View File

@@ -111,6 +111,20 @@ public interface User extends Identifiable {
ObjectPermissionSet getConnectionGroupPermissions()
throws GuacamoleException;
/**
* Returns all sharing profile permissions given to this user.
*
* @return
* An ObjectPermissionSet of all sharing profile permissions granted to
* this user.
*
* @throws GuacamoleException
* If an error occurs while retrieving permissions, or if reading all
* permissions is not allowed.
*/
ObjectPermissionSet getSharingProfilePermissions()
throws GuacamoleException;
/**
* Returns all permissions given to this user regarding currently-active
* connections.

View File

@@ -49,6 +49,11 @@ public class SystemPermission implements Permission<SystemPermission.Type> {
*/
CREATE_CONNECTION_GROUP,
/**
* Create sharing profiles.
*/
CREATE_SHARING_PROFILE,
/**
* Administer the system in general, including adding permissions
* which affect the system (like user creation, connection creation,

View File

@@ -195,4 +195,9 @@ public class SimpleUser extends AbstractUser {
return new SimpleObjectPermissionSet();
}
@Override
public ObjectPermissionSet getSharingProfilePermissions() {
return new SimpleObjectPermissionSet();
}
}