Ticket #263: Finalizing changes.

This commit is contained in:
James Muehlner committed 2013-08-08 21:01:14 -07:00
1 parent 010b5886db
commit 419166b3a1
13 files changed
+422 -80

No files matched your search

@@ -114,4 +114,17 @@ public interface Directory<IdentifierType, ObjectType> {
*/
void remove(IdentifierType identifier) throws GuacamoleException;
/**
* Moves the object with the given identifier to the group with the given
* group identifier.
*
* @param identifier The identifier of the object to remove.
* @param groupIdentifier The identifier of the group to move the object to.
*
* @throws GuacamoleException If an error occurs while moving the object,
* or if moving object is not allowed.
*/
void move(IdentifierType identifier, IdentifierType groupIdentifier)
throws GuacamoleException;
}
@@ -109,4 +109,10 @@ public class SimpleConnectionDirectory
throw new GuacamoleSecurityException("Permission denied.");
}
@Override
public void move(String identifier, String groupIdentifier)
throws GuacamoleException {
throw new GuacamoleSecurityException("Permission denied.");
}
}
@@ -86,4 +86,10 @@ public class SimpleConnectionGroupDirectory
throw new GuacamoleSecurityException("Permission denied.");
}
@Override
public void move(String identifier, String groupIdentifier)
throws GuacamoleException {
throw new GuacamoleSecurityException("Permission denied.");
}
}
@@ -100,4 +100,10 @@ public class SimpleUserDirectory implements Directory<String, User> {
throw new GuacamoleSecurityException("Permission denied.");
}
@Override
public void move(String identifier, String groupIdentifier)
throws GuacamoleException {
throw new GuacamoleSecurityException("Permission denied.");
}
}