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;
33 // TODO: Auto-generated Javadoc
35 * A RolePermissionClient.
37 * @version $Revision:$
39 public class RolePermissionClient extends AbstractServiceClientImpl<PermissionRole, PermissionRole, PermissionRole, RolePermissionProxy> {
41 public String getServiceName() {
42 throw new UnsupportedOperationException(); //FIXME: REM - http://issues.collectionspace.org/browse/CSPACE-3498
49 public String getServicePathComponent() {
50 return "authorization/roles";
54 public Class<RolePermissionProxy> getProxyClass() {
55 return RolePermissionProxy.class;
65 * @param csid the csid
66 * @return the client response
69 public ClientResponse<PermissionRole> read(String csid) {
70 return getProxy().read(csid);
76 * @param csid the csid
77 * @param prcsid the prcsid
78 * @return the client response
80 public ClientResponse<PermissionRole> read(String csid, String prcsid) {
81 return getProxy().read(csid, prcsid);
85 * Creates the relationships.
87 * @param csid the csid
88 * @param permRole the perm role
89 * @return the client response
92 public ClientResponse<Response> create(String csid, PermissionRole permRole) {
93 return getProxy().create(csid, permRole);
97 * delete given relationships between given role and permission(s).
99 * @param csid the csid
100 * @param permRole the perm role
101 * @return the client response
103 public ClientResponse<Response> delete(String csid, PermissionRole permRole) {
104 return getProxy().delete(csid, "delete", permRole);
108 public ClientResponse<Response> create(PermissionRole payload) {
109 throw new UnsupportedOperationException(); //method not supported nor needed
113 public ClientResponse<PermissionRole> update(String csid,
114 PermissionRole payload) {
115 throw new UnsupportedOperationException(); //method not supported nor needed
119 public ClientResponse<PermissionRole> readList() {
120 throw new UnsupportedOperationException(); //method not supported nor needed