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;
30 import org.jboss.resteasy.client.ClientResponse;
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 String getServiceName() {
41 throw new UnsupportedOperationException(); //FIXME: REM - http://issues.collectionspace.org/browse/CSPACE-3497
48 public String getServicePathComponent() {
49 return "authorization/permissions";
53 public Class<PermissionRoleProxy> getProxyClass() {
54 return PermissionRoleProxy.class;
64 * @param csid the csid
65 * @param prcsid relationship does not have an id, junk is fine
66 * @return the client response
69 public ClientResponse<PermissionRole> read(String csid, String prcsid) {
70 return getProxy().read(csid, prcsid);
76 * @param csid the csid
77 * @param prcsid relationship does not have an id, junk is fine
78 * @return the client response
81 public ClientResponse<PermissionRole> read(String csid) {
82 return getProxy().read(csid);
88 * @param csid the csid
89 * @param permRole the perm role
90 * @return the client response
93 public ClientResponse<Response> create(String csid, PermissionRole permRole) {
94 return getProxy().create(csid, permRole);
100 * @param csid the csid
101 * @param permRole the perm role
102 * @return the client response
104 public ClientResponse<Response> delete(String csid, PermissionRole permRole) {
105 return getProxy().delete(csid, "delete", permRole);
109 public ClientResponse<Response> create(PermissionRole payload) {
110 throw new UnsupportedOperationException(); //method not supported nor needed
114 public ClientResponse<PermissionRole> update(String csid,
115 PermissionRole payload) {
116 throw new UnsupportedOperationException(); //method not supported nor needed
120 public ClientResponse<PermissionRole> readList() {
121 throw new UnsupportedOperationException(); //method not supported nor needed