GUAC-1100: Identifier retrieval should possibly throw an exception.

This commit is contained in:
Michael Jumper
2015-02-23 15:37:23 -08:00
parent 79130e96fc
commit bbabfec4da

View File

@@ -23,6 +23,7 @@
package org.glyptodon.guacamole.net.auth; package org.glyptodon.guacamole.net.auth;
import java.util.Set; import java.util.Set;
import org.glyptodon.guacamole.GuacamoleException;
/** /**
* Represents a connection group, which can contain both other connection groups * Represents a connection group, which can contain both other connection groups
@@ -106,8 +107,11 @@ public interface ConnectionGroup extends Identifiable, Connectable {
* @return * @return
* The set of identifiers of all readable connections that are children * The set of identifiers of all readable connections that are children
* of this connection group. * of this connection group.
*
* @throws GuacamoleException
* If an error occurs while retrieving the identifiers.
*/ */
public Set<String> getConnectionIdentifiers(); public Set<String> getConnectionIdentifiers() throws GuacamoleException;
/** /**
* Returns the identifiers of all readable connection groups that are * Returns the identifiers of all readable connection groups that are
@@ -116,8 +120,12 @@ public interface ConnectionGroup extends Identifiable, Connectable {
* @return * @return
* The set of identifiers of all readable connection groups that are * The set of identifiers of all readable connection groups that are
* children of this connection group. * children of this connection group.
*
* @throws GuacamoleException
* If an error occurs while retrieving the identifiers.
*/ */
public Set<String> getConnectionGroupIdentifiers(); public Set<String> getConnectionGroupIdentifiers()
throws GuacamoleException;
} }