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;
33 // TODO: Auto-generated Javadoc
35 * A RolePermissionClient.
37 * @version $Revision:$
39 public class RolePermissionClient extends AbstractServiceClientImpl<PermissionRole, PermissionRole, PermissionRole, RolePermissionProxy> {
41 public RolePermissionClient() {
45 public RolePermissionClient(String clientPropertiesFilename) {
46 super(clientPropertiesFilename);
50 public String getServiceName() {
51 throw new UnsupportedOperationException(); //FIXME: REM - http://issues.collectionspace.org/browse/CSPACE-3498
58 public String getServicePathComponent() {
59 return "authorization/roles";
63 public Class<RolePermissionProxy> getProxyClass() {
64 return RolePermissionProxy.class;
74 * @param csid the csid
75 * @return the client response
78 public Response read(String csid) {
79 return getProxy().read(csid);
85 * @param csid the csid
86 * @param prcsid the prcsid
87 * @return the client response
89 public Response read(String csid, String prcsid) {
90 return getProxy().read(csid, prcsid);
94 * Creates the relationships.
96 * @param csid the csid
97 * @param permRole the perm role
98 * @return the client response
101 public Response create(String csid, PermissionRole permRole) {
102 return getProxy().create(csid, permRole);
106 * delete given relationships between given role and permission(s).
108 * @param csid the csid
109 * @param permRole the perm role
110 * @return the client response
112 public Response delete(String csid, PermissionRole permRole) {
113 return getProxy().delete(csid, "delete", permRole);
117 public Response create(PermissionRole payload) {
118 throw new UnsupportedOperationException(); //method not supported nor needed
122 public Response update(String csid,
123 PermissionRole payload) {
124 throw new UnsupportedOperationException(); //method not supported nor needed
128 public Response readList() {
129 throw new UnsupportedOperationException(); //method not supported nor needed