1 package org.collectionspace.services.client;
3 import javax.ws.rs.Consumes;
4 import javax.ws.rs.DELETE;
5 import javax.ws.rs.GET;
6 import javax.ws.rs.POST;
7 import javax.ws.rs.PUT;
8 import javax.ws.rs.Path;
9 import javax.ws.rs.PathParam;
10 import javax.ws.rs.QueryParam;
11 import javax.ws.rs.Produces;
12 import javax.ws.rs.core.Context;
13 import javax.ws.rs.core.Response;
14 import javax.ws.rs.core.UriInfo;
16 import org.collectionspace.services.common.query.IQueryManager;
17 import org.collectionspace.services.collectionobject.CollectionobjectsCommonList;
18 import org.jboss.resteasy.client.ClientResponse;
20 import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;
21 import org.jboss.resteasy.plugins.providers.multipart.MultipartOutput;
24 * @version $Revision:$
26 @Path("/collectionobjects/")
27 @Produces({"multipart/mixed"})
28 @Consumes({"multipart/mixed"})
29 public interface CollectionObjectProxy {
32 @Produces({"application/xml"})
33 ClientResponse<CollectionobjectsCommonList> readList();
37 @Produces({"application/xml"})
38 ClientResponse<Response> roundtrip();
42 @Produces({"application/xml"})
43 ClientResponse<CollectionobjectsCommonList> keywordSearch(
44 @QueryParam(IQueryManager.SEARCH_TYPE_KEYWORDS) String keywords);
48 ClientResponse<Response> create(MultipartOutput multipart);
53 ClientResponse<MultipartInput> read(@PathParam("csid") String csid);
58 ClientResponse<MultipartInput> update(@PathParam("csid") String csid, MultipartOutput multipart);
63 ClientResponse<Response> delete(@PathParam("csid") String csid);