Skip to content
Snippets Groups Projects
Commit b9f1f7a4 authored by Alinga Yeung's avatar Alinga Yeung
Browse files

Story ac2. Removed unnecessary modifiers from the interface.

parent 9b6b6623
Branches
No related tags found
No related merge requests found
...@@ -79,7 +79,7 @@ import ca.nrc.cadc.ac.Role; ...@@ -79,7 +79,7 @@ import ca.nrc.cadc.ac.Role;
import ca.nrc.cadc.ac.UserNotFoundException; import ca.nrc.cadc.ac.UserNotFoundException;
import ca.nrc.cadc.net.TransientException; import ca.nrc.cadc.net.TransientException;
public abstract interface GroupPersistence<T extends Principal> public interface GroupPersistence<T extends Principal>
{ {
/** /**
* Get all group names. * Get all group names.
...@@ -88,7 +88,7 @@ public abstract interface GroupPersistence<T extends Principal> ...@@ -88,7 +88,7 @@ public abstract interface GroupPersistence<T extends Principal>
* @throws TransientException If an temporary, unexpected problem occurred. * @throws TransientException If an temporary, unexpected problem occurred.
* @throws AccessControlException If the operation is not permitted. * @throws AccessControlException If the operation is not permitted.
*/ */
public Collection<String> getGroupNames() Collection<String> getGroupNames()
throws TransientException, AccessControlException; throws TransientException, AccessControlException;
/** /**
...@@ -102,7 +102,7 @@ public abstract interface GroupPersistence<T extends Principal> ...@@ -102,7 +102,7 @@ public abstract interface GroupPersistence<T extends Principal>
* @throws TransientException If an temporary, unexpected problem occurred. * @throws TransientException If an temporary, unexpected problem occurred.
* @throws AccessControlException If the operation is not permitted. * @throws AccessControlException If the operation is not permitted.
*/ */
public abstract Group getGroup(String groupID) Group getGroup(String groupID)
throws GroupNotFoundException, TransientException, throws GroupNotFoundException, TransientException,
AccessControlException; AccessControlException;
...@@ -121,7 +121,7 @@ public abstract interface GroupPersistence<T extends Principal> ...@@ -121,7 +121,7 @@ public abstract interface GroupPersistence<T extends Principal>
* @throws GroupNotFoundException if one of the groups in group members or * @throws GroupNotFoundException if one of the groups in group members or
* group admins does not exist in the server. * group admins does not exist in the server.
*/ */
public abstract Group addGroup(Group group) Group addGroup(Group group)
throws GroupAlreadyExistsException, TransientException, throws GroupAlreadyExistsException, TransientException,
AccessControlException, UserNotFoundException, AccessControlException, UserNotFoundException,
GroupNotFoundException; GroupNotFoundException;
...@@ -135,7 +135,7 @@ public abstract interface GroupPersistence<T extends Principal> ...@@ -135,7 +135,7 @@ public abstract interface GroupPersistence<T extends Principal>
* @throws TransientException If an temporary, unexpected problem occurred. * @throws TransientException If an temporary, unexpected problem occurred.
* @throws AccessControlException If the operation is not permitted. * @throws AccessControlException If the operation is not permitted.
*/ */
public abstract void deleteGroup(String groupID) void deleteGroup(String groupID)
throws GroupNotFoundException, TransientException, throws GroupNotFoundException, TransientException,
AccessControlException; AccessControlException;
...@@ -151,7 +151,7 @@ public abstract interface GroupPersistence<T extends Principal> ...@@ -151,7 +151,7 @@ public abstract interface GroupPersistence<T extends Principal>
* @throws AccessControlException If the operation is not permitted. * @throws AccessControlException If the operation is not permitted.
* @throws UserNotFoundException If owner or group members not valid users. * @throws UserNotFoundException If owner or group members not valid users.
*/ */
public abstract Group modifyGroup(Group group) Group modifyGroup(Group group)
throws GroupNotFoundException, TransientException, throws GroupNotFoundException, TransientException,
AccessControlException, UserNotFoundException; AccessControlException, UserNotFoundException;
...@@ -170,7 +170,7 @@ public abstract interface GroupPersistence<T extends Principal> ...@@ -170,7 +170,7 @@ public abstract interface GroupPersistence<T extends Principal>
* @throws TransientException If an temporary, unexpected problem occurred. * @throws TransientException If an temporary, unexpected problem occurred.
* @throws AccessControlException If the operation is not permitted. * @throws AccessControlException If the operation is not permitted.
*/ */
public abstract Collection<Group> getGroups(T userID, Role role, Collection<Group> getGroups(T userID, Role role,
String groupID) String groupID)
throws UserNotFoundException, GroupNotFoundException, throws UserNotFoundException, GroupNotFoundException,
TransientException, AccessControlException; TransientException, AccessControlException;
...@@ -187,7 +187,7 @@ public abstract interface GroupPersistence<T extends Principal> ...@@ -187,7 +187,7 @@ public abstract interface GroupPersistence<T extends Principal>
* @throws TransientException If an temporary, unexpected problem occurred. * @throws TransientException If an temporary, unexpected problem occurred.
* @throws AccessControlException If the operation is not permitted. * @throws AccessControlException If the operation is not permitted.
*/ */
public boolean isMember(T userID, String groupID) boolean isMember(T userID, String groupID)
throws UserNotFoundException, TransientException, throws UserNotFoundException, TransientException,
AccessControlException; AccessControlException;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment