]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
885572ef99294e0936d078a768480e27c5f3bc3b
[tmp/jakarta-migration.git] /
1 /**     
2  * PermissionRoleClient.java
3  *
4  * {Purpose of This Class}
5  *
6  * {Other Notes Relating to This Class (Optional)}
7  *
8  * $LastChangedBy: $
9  * $LastChangedRevision: $
10  * $LastChangedDate: $
11  *
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:
15  *
16  * http://www.collectionspace.org
17  * http://wiki.collectionspace.org
18  *
19  * Copyright (C) 2009 {Contributing Institution}
20  *
21  * Licensed under the Educational Community License (ECL), Version 2.0.
22  * You may not use this file except in compliance with this License.
23  *
24  * You may obtain a copy of the ECL 2.0 License at
25  * https://source.collectionspace.org/collection-space/LICENSE.txt
26  */
27 package org.collectionspace.services.client;
28
29 import javax.ws.rs.core.Response;
30 import org.jboss.resteasy.client.ClientResponse;
31 import org.collectionspace.services.authorization.PermissionRole;
32
33 /**
34  * A PermissionRoleClient.
35
36  * @version $Revision:$
37  */
38 public class PermissionRoleClient extends AbstractServiceClientImpl<PermissionRole, PermissionRole, PermissionRole, PermissionRoleProxy> {
39         @Override
40         public String getServiceName() {
41                 throw new UnsupportedOperationException(); //FIXME: REM - http://issues.collectionspace.org/browse/CSPACE-3497
42         }
43     
44     /* (non-Javadoc)
45      * @see 
46      */
47     @Override
48         public String getServicePathComponent() {
49         return "authorization/permissions";
50     }
51
52         @Override
53         public Class<PermissionRoleProxy> getProxyClass() {
54                 return PermissionRoleProxy.class;
55         }
56
57         /*
58          * CRUD+L Methods
59          */
60         
61     /**
62      * Read.
63      *
64      * @param csid the csid
65      * @param prcsid relationship does not have an id, junk is fine
66      * @return the client response
67      * @see
68      */
69     public ClientResponse<PermissionRole> read(String csid, String prcsid) {
70         return getProxy().read(csid, prcsid);
71     }
72
73     /**
74      * Read.
75      *
76      * @param csid the csid
77      * @param prcsid relationship does not have an id, junk is fine
78      * @return the client response
79      * @see
80      */
81     public ClientResponse<PermissionRole> read(String csid) {
82         return getProxy().read(csid);
83     }
84
85     /**
86      * Creates the.
87      *
88      * @param csid the csid
89      * @param permRole the perm role
90      * @return the client response
91      * @see
92      */
93     public ClientResponse<Response> create(String csid, PermissionRole permRole) {
94         return getProxy().create(csid, permRole);
95     }
96     
97     /**
98      * Delete with payload
99      *
100      * @param csid the csid
101      * @param permRole the perm role
102      * @return the client response
103      */
104     public ClientResponse<Response> delete(String csid, PermissionRole permRole) {
105         return getProxy().delete(csid, "delete", permRole);
106     }
107
108         @Override
109         public ClientResponse<Response> create(PermissionRole payload) {
110                 throw new UnsupportedOperationException(); //method not supported nor needed
111         }
112
113         @Override
114         public ClientResponse<PermissionRole> update(String csid,
115                         PermissionRole payload) {
116                 throw new UnsupportedOperationException(); //method not supported nor needed
117         }
118
119         @Override
120         public ClientResponse<PermissionRole> readList() {
121                 throw new UnsupportedOperationException(); //method not supported nor needed
122         }
123 }