Loading projects/cadcAccessControl/src/ca/nrc/cadc/ac/client/GMSClient.java +6 −2 Original line number Diff line number Diff line Loading @@ -301,11 +301,12 @@ public class GMSClient * @return The group after update. * @throws IllegalArgumentException If cyclical membership is detected. * @throws GroupNotFoundException If the group was not found. * @throws GroupNotFoundException If a member was not found. * @throws AccessControlException If unauthorized to perform this operation. * @throws java.io.IOException */ public Group updateGroup(Group group) throws IllegalArgumentException, GroupNotFoundException, throws IllegalArgumentException, GroupNotFoundException, UserNotFoundException, AccessControlException, IOException { URL updateGroupURL = new URL(this.baseURL + "/groups/" + group.getID()); Loading Loading @@ -345,6 +346,9 @@ public class GMSClient } if (transfer.getResponseCode() == 404) { if (error.getMessage() != null && error.getMessage().toLowerCase().contains("user")) throw new UserNotFoundException(error.getMessage()); else throw new GroupNotFoundException(error.getMessage()); } throw new IOException(error); Loading Loading
projects/cadcAccessControl/src/ca/nrc/cadc/ac/client/GMSClient.java +6 −2 Original line number Diff line number Diff line Loading @@ -301,11 +301,12 @@ public class GMSClient * @return The group after update. * @throws IllegalArgumentException If cyclical membership is detected. * @throws GroupNotFoundException If the group was not found. * @throws GroupNotFoundException If a member was not found. * @throws AccessControlException If unauthorized to perform this operation. * @throws java.io.IOException */ public Group updateGroup(Group group) throws IllegalArgumentException, GroupNotFoundException, throws IllegalArgumentException, GroupNotFoundException, UserNotFoundException, AccessControlException, IOException { URL updateGroupURL = new URL(this.baseURL + "/groups/" + group.getID()); Loading Loading @@ -345,6 +346,9 @@ public class GMSClient } if (transfer.getResponseCode() == 404) { if (error.getMessage() != null && error.getMessage().toLowerCase().contains("user")) throw new UserNotFoundException(error.getMessage()); else throw new GroupNotFoundException(error.getMessage()); } throw new IOException(error); Loading