]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
6097fed146d64d11cd010bdceb366bd07c8313d0
[tmp/jakarta-migration.git] /
1 package org.collectionspace.hello.client;
2
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.Produces;
11 import javax.ws.rs.core.Response;
12
13 import org.collectionspace.hello.CollectionObject;
14 import org.collectionspace.hello.CollectionObjectList;
15 import org.jboss.resteasy.client.ClientResponse;
16
17 /**
18  * @version $Revision:$
19  */
20 @Path("/collectionobjects/")
21 @Produces({"application/xml"})
22 @Consumes({"application/xml"})
23 public interface CollectionObjectProxy {
24
25     @GET
26     ClientResponse<CollectionObjectList> getCollectionObjectList();
27
28     //(C)reate
29     @POST
30     ClientResponse<Response> createCollectionObject(CollectionObject co);
31
32     //(R)ead
33     @GET
34     @Path("/{csid}")
35     ClientResponse<CollectionObject> getCollectionObject(@PathParam("csid") String csid);
36
37     //(U)pdate
38     @PUT
39     @Path("/{csid}")
40     ClientResponse<CollectionObject> updateCollectionObject(@PathParam("csid") String csid, CollectionObject co);
41
42     //(D)elete
43     @DELETE
44     @Path("/{csid}")
45     ClientResponse<Response> deleteCollectionObject(@PathParam("csid") String csid);
46 }