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