GUAC-1101: Note the permission-enforcing nature of each service.

This commit is contained in:
Michael Jumper
2015-02-13 12:21:24 -08:00
parent 107367731a
commit 4790624620
4 changed files with 8 additions and 12 deletions

View File

@@ -36,7 +36,8 @@ import org.glyptodon.guacamole.net.auth.permission.ObjectPermissionSet;
/** /**
* Service which provides convenience methods for creating, retrieving, and * Service which provides convenience methods for creating, retrieving, and
* manipulating users. * manipulating users. This service will automatically enforce the
* permissions of the current user.
* *
* @author Michael Jumper * @author Michael Jumper
* @param <ObjectType> * @param <ObjectType>

View File

@@ -22,22 +22,15 @@
package net.sourceforge.guacamole.net.auth.mysql.service; package net.sourceforge.guacamole.net.auth.mysql.service;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import net.sourceforge.guacamole.net.auth.mysql.AuthenticatedUser; import net.sourceforge.guacamole.net.auth.mysql.AuthenticatedUser;
import net.sourceforge.guacamole.net.auth.mysql.MySQLUser;
import net.sourceforge.guacamole.net.auth.mysql.dao.PermissionMapper;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.GuacamoleSecurityException;
import org.glyptodon.guacamole.net.auth.permission.ObjectPermission; import org.glyptodon.guacamole.net.auth.permission.ObjectPermission;
import org.glyptodon.guacamole.net.auth.permission.ObjectPermissionSet;
import org.glyptodon.guacamole.net.auth.permission.Permission;
import org.glyptodon.guacamole.net.auth.permission.PermissionSet; import org.glyptodon.guacamole.net.auth.permission.PermissionSet;
/** /**
* Service which provides convenience methods for creating, retrieving, and * Service which provides convenience methods for creating, retrieving, and
* deleting object permissions. * deleting object permissions. This service will automatically enforce the
* permissions of the current user.
* *
* @author Michael Jumper * @author Michael Jumper
* @param <ObjectPermissionType> * @param <ObjectPermissionType>

View File

@@ -35,7 +35,8 @@ import org.glyptodon.guacamole.net.auth.permission.Permission;
/** /**
* Service which provides convenience methods for creating, retrieving, and * Service which provides convenience methods for creating, retrieving, and
* deleting permissions. * deleting permissions. This service will automatically enforce the
* permissions of the current user.
* *
* @author Michael Jumper * @author Michael Jumper
* @param <PermissionType> * @param <PermissionType>

View File

@@ -34,7 +34,8 @@ import org.glyptodon.guacamole.net.auth.permission.SystemPermission;
/** /**
* Service which provides convenience methods for creating, retrieving, and * Service which provides convenience methods for creating, retrieving, and
* deleting system permissions. * deleting system permissions. This service will automatically enforce
* the permissions of the current user.
* *
* @author Michael Jumper * @author Michael Jumper
*/ */