2 * PermissionRoleClient.java
4 * {Purpose of This Class}
6 * {Other Notes Relating to This Class (Optional)}
9 * $LastChangedRevision: $
12 * This document is a part of the source code and related artifacts
13 * for CollectionSpace, an open source collections management system
14 * for museums and related institutions:
16 * http://www.collectionspace.org
17 * http://wiki.collectionspace.org
19 * Copyright (C) 2009 {Contributing Institution}
21 * Licensed under the Educational Community License (ECL), Version 2.0.
22 * You may not use this file except in compliance with this License.
24 * You may obtain a copy of the ECL 2.0 License at
25 * https://source.collectionspace.org/collection-space/LICENSE.txt
27 package org.collectionspace.services.client;
29 import javax.ws.rs.core.Response;
31 import org.collectionspace.services.authorization.PermissionRole;
34 * A PermissionRoleClient.
36 * @version $Revision:$
38 public class PermissionRoleClient extends AbstractServiceClientImpl<PermissionRole, PermissionRole, PermissionRole, PermissionRoleProxy> {
40 public PermissionRoleClient() {
44 public PermissionRoleClient(String clientPropertiesFilename) {
45 super(clientPropertiesFilename);
49 public String getServiceName() {
50 throw new UnsupportedOperationException(); //FIXME: REM - http://issues.collectionspace.org/browse/CSPACE-3497
57 public String getServicePathComponent() {
58 return "authorization/permissions";
62 public Class<PermissionRoleProxy> getProxyClass() {
63 return PermissionRoleProxy.class;
73 * @param csid the csid
74 * @param prcsid relationship does not have an id, junk is fine
75 * @return the client response
78 public Response read(String csid, String prcsid) {
79 return getProxy().read(csid, prcsid);
85 * @param csid the csid
86 * @param prcsid relationship does not have an id, junk is fine
87 * @return the client response
90 public Response read(String csid) {
91 return getProxy().read(csid);
97 * @param csid the csid
98 * @param permRole the perm role
99 * @return the client response
102 public Response create(String csid, PermissionRole permRole) {
103 return getProxy().create(csid, permRole);
107 * Delete with payload
109 * @param csid the csid
110 * @param permRole the perm role
111 * @return the client response
113 public Response delete(String csid, PermissionRole permRole) {
114 return getProxy().delete(csid, "delete", permRole);
118 public Response create(PermissionRole payload) {
119 throw new UnsupportedOperationException(); //method not supported nor needed
123 public Response update(String csid,
124 PermissionRole payload) {
125 throw new UnsupportedOperationException(); //method not supported nor needed
129 public Response readList() {
130 throw new UnsupportedOperationException(); //method not supported nor needed