diff --git a/guacamole-ext/src/main/java/org/glyptodon/guacamole/net/auth/User.java b/guacamole-ext/src/main/java/org/glyptodon/guacamole/net/auth/User.java index 2cd5fea75..da5c632e4 100644 --- a/guacamole-ext/src/main/java/org/glyptodon/guacamole/net/auth/User.java +++ b/guacamole-ext/src/main/java/org/glyptodon/guacamole/net/auth/User.java @@ -69,47 +69,56 @@ public interface User { public void setPassword(String password); /** - * Lists all permissions given to this user. + * Returns all system-level permissions given to this user. * - * @return A Set of all permissions granted to this user. + * @return + * A SystemPermissionSet of all system-level permissions granted to + * this user. * - * @throws GuacamoleException If an error occurs while retrieving - * permissions, or if reading all permissions - * is not allowed. + * @throws GuacamoleException + * If an error occurs while retrieving permissions, or if reading all + * permissions is not allowed. */ SystemPermissionSet getSystemPermissions() throws GuacamoleException; /** - * Lists all permissions given to this user. + * Returns all connection permissions given to this user. * - * @return A Set of all permissions granted to this user. + * @return + * An ObjectPermissionSet of all connection permissions granted to this + * user. * - * @throws GuacamoleException If an error occurs while retrieving - * permissions, or if reading all permissions - * is not allowed. + * @throws GuacamoleException + * If an error occurs while retrieving permissions, or if reading all + * permissions is not allowed. */ - ObjectPermissionSet getConnectionPermissions() throws GuacamoleException; + ObjectPermissionSet getConnectionPermissions() + throws GuacamoleException; /** - * Lists all permissions given to this user. + * Returns all connection group permissions given to this user. * - * @return A Set of all permissions granted to this user. + * @return + * An ObjectPermissionSet of all connection group permissions granted + * to this user. * - * @throws GuacamoleException If an error occurs while retrieving - * permissions, or if reading all permissions - * is not allowed. + * @throws GuacamoleException + * If an error occurs while retrieving permissions, or if reading all + * permissions is not allowed. */ - ObjectPermissionSet getConnectionGroupPermissions() throws GuacamoleException; + ObjectPermissionSet getConnectionGroupPermissions() + throws GuacamoleException; /** - * Lists all permissions given to this user. + * Returns all user permissions given to this user. * - * @return A Set of all permissions granted to this user. + * @return + * An ObjectPermissionSet of all user permissions granted to this user. * - * @throws GuacamoleException If an error occurs while retrieving - * permissions, or if reading all permissions - * is not allowed. + * @throws GuacamoleException + * If an error occurs while retrieving permissions, or if reading all + * permissions is not allowed. */ - ObjectPermissionSet getUserPermissions() throws GuacamoleException; + ObjectPermissionSet getUserPermissions() throws GuacamoleException; } diff --git a/guacamole-ext/src/main/java/org/glyptodon/guacamole/net/auth/permission/ObjectPermissionSet.java b/guacamole-ext/src/main/java/org/glyptodon/guacamole/net/auth/permission/ObjectPermissionSet.java index 306417aac..490c5697d 100644 --- a/guacamole-ext/src/main/java/org/glyptodon/guacamole/net/auth/permission/ObjectPermissionSet.java +++ b/guacamole-ext/src/main/java/org/glyptodon/guacamole/net/auth/permission/ObjectPermissionSet.java @@ -34,12 +34,8 @@ import org.glyptodon.guacamole.GuacamoleException; * @param * The type of identifier used to identify objects affected by permissions * stored in this ObjectPermissionSet. - * - * @param - * The type of objects affected by permissions stored in this - * ObjectPermissionSet. */ -public interface ObjectPermissionSet { +public interface ObjectPermissionSet { /** * Tests whether the permission of the given type is granted for the diff --git a/guacamole-ext/src/main/java/org/glyptodon/guacamole/net/auth/simple/SimpleObjectPermissionSet.java b/guacamole-ext/src/main/java/org/glyptodon/guacamole/net/auth/simple/SimpleObjectPermissionSet.java index 2a3b990af..d0132780c 100644 --- a/guacamole-ext/src/main/java/org/glyptodon/guacamole/net/auth/simple/SimpleObjectPermissionSet.java +++ b/guacamole-ext/src/main/java/org/glyptodon/guacamole/net/auth/simple/SimpleObjectPermissionSet.java @@ -39,13 +39,9 @@ import org.glyptodon.guacamole.net.auth.permission.ObjectPermissionSet; * @param * The type of identifier used to identify objects affected by permissions * stored in this SimpleObjectPermissionSet. - * - * @param - * The type of objects affected by permissions stored in this - * SimpleObjectPermissionSet. */ -public class SimpleObjectPermissionSet - implements ObjectPermissionSet { +public class SimpleObjectPermissionSet + implements ObjectPermissionSet { /** * The set of all permissions currently granted. diff --git a/guacamole-ext/src/main/java/org/glyptodon/guacamole/net/auth/simple/SimpleUser.java b/guacamole-ext/src/main/java/org/glyptodon/guacamole/net/auth/simple/SimpleUser.java index bdb9759a9..0e75527e5 100644 --- a/guacamole-ext/src/main/java/org/glyptodon/guacamole/net/auth/simple/SimpleUser.java +++ b/guacamole-ext/src/main/java/org/glyptodon/guacamole/net/auth/simple/SimpleUser.java @@ -112,21 +112,21 @@ public class SimpleUser extends AbstractUser { } @Override - public ObjectPermissionSet getConnectionPermissions() + public ObjectPermissionSet getConnectionPermissions() throws GuacamoleException { - return new SimpleObjectPermissionSet(connectionPermissions); + return new SimpleObjectPermissionSet(connectionPermissions); } @Override - public ObjectPermissionSet getConnectionGroupPermissions() + public ObjectPermissionSet getConnectionGroupPermissions() throws GuacamoleException { - return new SimpleObjectPermissionSet(connectionGroupPermissions); + return new SimpleObjectPermissionSet(connectionGroupPermissions); } @Override - public ObjectPermissionSet getUserPermissions() + public ObjectPermissionSet getUserPermissions() throws GuacamoleException { - return new SimpleObjectPermissionSet(); + return new SimpleObjectPermissionSet(); } }