]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
d5ffa928fc49cb9adbeffe35a67ce23f39be1ce6
[tmp/jakarta-migration.git] /
1 package org.collectionspace.services.client;\r
2 \r
3 import javax.ws.rs.core.Response;\r
4 \r
5 import org.collectionspace.services.jaxb.AbstractCommonList;\r
6 import org.jboss.resteasy.client.ClientResponse;\r
7 \r
8 /*\r
9  * LT - List type\r
10  * ILT - Authority item list type\r
11  * P - Proxy type\r
12  */\r
13 public interface AuthorityWithContactsClient<AUTHORITY_ITEM_TYPE, P extends AuthorityProxy>\r
14         extends AuthorityClient<AUTHORITY_ITEM_TYPE, P> {\r
15     /**\r
16      * Creates the contact.\r
17      *\r
18      * @param parentcsid the parentcsid\r
19      * @param itemcsid the itemcsid\r
20      * @param multipart the multipart\r
21      * @return the client response\r
22      */\r
23     public ClientResponse<Response> createContact(String parentcsid,\r
24             String itemcsid, PoxPayloadOut xmlPayload);\r
25     \r
26     /**\r
27      * Creates the contact.\r
28      *\r
29      * @param parentcsid\r
30      * @param itemspecifier (shortIdentifier)\r
31      * @param multipart\r
32      * @return the client response\r
33      */\r
34     public ClientResponse<Response> createContactForNamedItem(\r
35                 String parentcsid,\r
36                 String itemspecifier,\r
37                 PoxPayloadOut xmlPayload);\r
38     \r
39     /**\r
40      * Creates the contact.\r
41      *\r
42      * @param parentspecifier (shortIdentifier)\r
43      * @param itemcsid\r
44      * @param multipart\r
45      * @return the client response\r
46      */\r
47     public ClientResponse<Response> createContactForItemInNamedAuthority(\r
48                 String parentspecifier,\r
49                 String itemcsid,\r
50                 PoxPayloadOut xmlPayload);\r
51     \r
52     /**\r
53      * Creates the contact.\r
54      *\r
55      * @param parentspecifier (shortIdentifier)\r
56      * @param itemspecifier (shortIdentifier)\r
57      * @param multipart\r
58      * @return the client response\r
59      */\r
60     public ClientResponse<Response> createContactForNamedItemInNamedAuthority(\r
61                 String parentspecifier,\r
62                 String itemspecifier,\r
63                 PoxPayloadOut xmlPayload);\r
64     \r
65     /**\r
66      * Read contact.\r
67      *\r
68      * @param parentcsid the parentcsid\r
69      * @param itemcsid the itemcsid\r
70      * @param csid the csid\r
71      * @return the client response\r
72      */\r
73     public ClientResponse<String> readContact(String parentcsid,\r
74             String itemcsid, String csid);\r
75     \r
76     /**\r
77      * Read contact.\r
78      *\r
79      * @param parentcsid\r
80      * @param itemspecifier (shortIdentifier)\r
81      * @param csid\r
82      * @return the client response\r
83      */\r
84     public ClientResponse<String> readContactForNamedItem(\r
85                 String parentcsid,\r
86                 String itemspecifier,\r
87                 String csid);\r
88 \r
89     /**\r
90      * Read contact.\r
91      *\r
92      * @param parentspecifier (shortIdentifier)\r
93      * @param itemcsid\r
94      * @param csid\r
95      * @return the client response\r
96      */\r
97     public ClientResponse<String> readContactInNamedAuthority(\r
98                 String parentspecifier,\r
99                 String itemcsid,\r
100                 String csid);\r
101 \r
102     /**\r
103      * Read contact.\r
104      *\r
105      * @param parentspecifier (shortIdentifier)\r
106      * @param itemspecifier (shortIdentifier)\r
107      * @param csid\r
108      * @return the client response\r
109      */\r
110     public ClientResponse<String> readContactForNamedItemInNamedAuthority(\r
111                 String parentspecifier,\r
112                 String itemspecifier,\r
113                 String csid);\r
114             \r
115 \r
116     /**\r
117      * Read contact list.\r
118      *\r
119      * @param parentcsid the parentcsid\r
120      * @param itemcsid the itemcsid\r
121      * @return the client response\r
122      */\r
123     public ClientResponse<AbstractCommonList> readContactList(String parentcsid,\r
124             String itemcsid);\r
125     \r
126     /**\r
127      * Read contact list.\r
128      *\r
129      * @param parentcsid\r
130      * @param itemspecifier (shortIdentifier)\r
131      * @return the client response\r
132      */\r
133     public ClientResponse<AbstractCommonList> readContactListForNamedItem(\r
134                 String parentcsid,\r
135                 String itemspecifier);\r
136 \r
137     /**\r
138      * Read contact list.\r
139      *\r
140      * @param parentspecifier (shortIdentifier)\r
141      * @param itemcsid\r
142      * @return the client response\r
143      */\r
144     public ClientResponse<AbstractCommonList> readContactListForItemInNamedAuthority(\r
145                 String parentspecifier,\r
146                 String itemcsid);\r
147 \r
148     /**\r
149      * Read contact list.\r
150      *\r
151      * @param parentspecifier (shortIdentifier)\r
152      * @param itemspecifier (shortIdentifier)\r
153      * @return the client response\r
154      */\r
155     public ClientResponse<AbstractCommonList> readContactListForNamedItemInNamedAuthority(\r
156                 String parentspecifier,\r
157                 String itemspecifier);\r
158 \r
159     /**\r
160      * Update contact.\r
161      *\r
162      * @param parentcsid the parentcsid\r
163      * @param itemcsid the itemcsid\r
164      * @param csid the csid\r
165      * @param multipart the multipart\r
166      * @return the client response\r
167      */\r
168     public ClientResponse<String> updateContact(String parentcsid,\r
169             String itemcsid, String csid, PoxPayloadOut xmlPayload);\r
170     \r
171     /**\r
172      * Update contact.\r
173      *\r
174      * @param parentcsid the parentcsid\r
175      * @param itemspecifier (shortIdentifier)\r
176      * @param csid the csid\r
177      * @param multipart the multipart\r
178      * @return the client response\r
179      */\r
180     public ClientResponse<String> updateContactForNamedItem(\r
181                 String parentcsid,\r
182                 String itemspecifier,\r
183                 String csid,\r
184                 PoxPayloadOut xmlPayload);\r
185 \r
186     /**\r
187      * Update contact.\r
188      *\r
189      * @param parentspecifier (shortIdentifier)\r
190      * @param itemcsid the itemcsid\r
191      * @param csid the csid\r
192      * @param multipart the multipart\r
193      * @return the client response\r
194      */\r
195     public ClientResponse<String> updateContactInNamedAuthority(\r
196                 String parentspecifier,\r
197                 String itemcsid,\r
198                 String csid,\r
199                 PoxPayloadOut xmlPayload);\r
200 \r
201     /**\r
202      * Update contact.\r
203      *\r
204      * @param parentspecifier (shortIdentifier)\r
205      * @param itemspecifier (shortIdentifier)\r
206      * @param csid the csid\r
207      * @param multipart the multipart\r
208      * @return the client response\r
209      */\r
210     public ClientResponse<String> updateContactForNamedItemInNamedAuthority(\r
211                 String parentspecifier,\r
212                 String itemspecifier,\r
213                 String csid,\r
214                 PoxPayloadOut xmlPayload);\r
215 \r
216     /**\r
217      * Delete contact.\r
218      *\r
219      * @param parentcsid the parentcsid\r
220      * @param itemcsid the itemcsid\r
221      * @param csid the csid\r
222      * @return the client response\r
223      */\r
224     public ClientResponse<Response> deleteContact(String parentcsid,\r
225         String itemcsid, String csid);\r
226     \r
227     /**\r
228      * Delete contact.\r
229      *\r
230      * @param parentcsid the parentcsid\r
231      * @param itemspecifier (shortIdentifier)\r
232      * @param csid the csid\r
233      * @return the client response\r
234      */\r
235     public ClientResponse<Response> deleteContactForNamedItem(\r
236                 String parentcsid,\r
237                 String itemspecifier,\r
238                 String csid);\r
239 \r
240     /**\r
241      * Delete contact.\r
242      *\r
243      * @param parentspecifier (shortIdentifier)\r
244      * @param itemcsid the itemcsid\r
245      * @param csid the csid\r
246      * @return the client response\r
247      */\r
248     public ClientResponse<Response> deleteContactInNamedAuthority(\r
249                 String parentspecifier,\r
250                 String itemcsid,\r
251                 String csid);\r
252 \r
253     /**\r
254      * Delete contact.\r
255      *\r
256      * @param parentspecifier (shortIdentifier)\r
257      * @param itemspecifier (shortIdentifier)\r
258      * @param csid the csid\r
259      * @return the client response\r
260      */\r
261     public ClientResponse<Response> deleteContactForNamedItemInNamedAuthority(\r
262                 String parentspecifier,\r
263                 String itemspecifier,\r
264                 String csid);\r
265     \r
266 }\r