1 package org.collectionspace.services.client;
3 import javax.ws.rs.core.Response;
5 import org.collectionspace.services.jaxb.AbstractCommonList;
6 import org.jboss.resteasy.client.ClientResponse;
10 * ILT - Authority item list type
13 public interface AuthorityWithContactsClient<AUTHORITY_ITEM_TYPE, P extends AuthorityProxy>
14 extends AuthorityClient<AUTHORITY_ITEM_TYPE, P> {
16 * Creates the contact.
18 * @param parentcsid the parentcsid
19 * @param itemcsid the itemcsid
20 * @param multipart the multipart
21 * @return the client response
23 public Response createContact(String parentcsid,
24 String itemcsid, PoxPayloadOut xmlPayload);
27 * Creates the contact.
30 * @param itemspecifier (shortIdentifier)
32 * @return the client response
34 public Response createContactForNamedItem(
37 PoxPayloadOut xmlPayload);
40 * Creates the contact.
42 * @param parentspecifier (shortIdentifier)
45 * @return the client response
47 public Response createContactForItemInNamedAuthority(
48 String parentspecifier,
50 PoxPayloadOut xmlPayload);
53 * Creates the contact.
55 * @param parentspecifier (shortIdentifier)
56 * @param itemspecifier (shortIdentifier)
58 * @return the client response
60 public Response createContactForNamedItemInNamedAuthority(
61 String parentspecifier,
63 PoxPayloadOut xmlPayload);
68 * @param parentcsid the parentcsid
69 * @param itemcsid the itemcsid
70 * @param csid the csid
71 * @return the client response
73 public Response readContact(String parentcsid,
74 String itemcsid, String csid);
80 * @param itemspecifier (shortIdentifier)
82 * @return the client response
84 public Response readContactForNamedItem(
92 * @param parentspecifier (shortIdentifier)
95 * @return the client response
97 public Response readContactInNamedAuthority(
98 String parentspecifier,
105 * @param parentspecifier (shortIdentifier)
106 * @param itemspecifier (shortIdentifier)
108 * @return the client response
110 public Response readContactForNamedItemInNamedAuthority(
111 String parentspecifier,
112 String itemspecifier,
119 * @param parentcsid the parentcsid
120 * @param itemcsid the itemcsid
121 * @return the client response
123 public Response readContactList(String parentcsid,
130 * @param itemspecifier (shortIdentifier)
131 * @return the client response
133 public Response readContactListForNamedItem(
135 String itemspecifier);
140 * @param parentspecifier (shortIdentifier)
142 * @return the client response
144 public Response readContactListForItemInNamedAuthority(
145 String parentspecifier,
151 * @param parentspecifier (shortIdentifier)
152 * @param itemspecifier (shortIdentifier)
153 * @return the client response
155 public Response readContactListForNamedItemInNamedAuthority(
156 String parentspecifier,
157 String itemspecifier);
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
168 public Response updateContact(String parentcsid,
169 String itemcsid, String csid, PoxPayloadOut xmlPayload);
174 * @param parentcsid the parentcsid
175 * @param itemspecifier (shortIdentifier)
176 * @param csid the csid
177 * @param multipart the multipart
178 * @return the client response
180 public Response updateContactForNamedItem(
182 String itemspecifier,
184 PoxPayloadOut xmlPayload);
189 * @param parentspecifier (shortIdentifier)
190 * @param itemcsid the itemcsid
191 * @param csid the csid
192 * @param multipart the multipart
193 * @return the client response
195 public Response updateContactInNamedAuthority(
196 String parentspecifier,
199 PoxPayloadOut xmlPayload);
204 * @param parentspecifier (shortIdentifier)
205 * @param itemspecifier (shortIdentifier)
206 * @param csid the csid
207 * @param multipart the multipart
208 * @return the client response
210 public Response updateContactForNamedItemInNamedAuthority(
211 String parentspecifier,
212 String itemspecifier,
214 PoxPayloadOut xmlPayload);
219 * @param parentcsid the parentcsid
220 * @param itemcsid the itemcsid
221 * @param csid the csid
222 * @return the client response
224 public Response deleteContact(String parentcsid,
225 String itemcsid, String csid);
230 * @param parentcsid the parentcsid
231 * @param itemspecifier (shortIdentifier)
232 * @param csid the csid
233 * @return the client response
235 public Response deleteContactForNamedItem(
237 String itemspecifier,
243 * @param parentspecifier (shortIdentifier)
244 * @param itemcsid the itemcsid
245 * @param csid the csid
246 * @return the client response
248 public Response deleteContactInNamedAuthority(
249 String parentspecifier,
256 * @param parentspecifier (shortIdentifier)
257 * @param itemspecifier (shortIdentifier)
258 * @param csid the csid
259 * @return the client response
261 public Response deleteContactForNamedItemInNamedAuthority(
262 String parentspecifier,
263 String itemspecifier,