Ticket #263: Finalizing changes.

This commit is contained in:
James Muehlner
2013-08-07 21:55:25 -07:00
parent 010b5886db
commit 419166b3a1
13 changed files with 422 additions and 80 deletions

View File

@@ -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;
}

View File

@@ -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.");
}
}

View File

@@ -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.");
}
}

View File

@@ -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.");
}
}