]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
269836db3be96e2a143962a094eca3fb4b0643e8
[tmp/jakarta-migration.git] /
1 package org.collectionspace.services.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.services.organization.OrgauthoritiesCommonList;
14 import org.collectionspace.services.organization.OrganizationsCommonList;
15 import org.jboss.resteasy.client.ClientResponse;
16 import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;
17 import org.jboss.resteasy.plugins.providers.multipart.MultipartOutput;
18
19 /**
20  * @version $Revision:$
21  */
22 @Path("/orgauthorities/")
23 @Produces({"multipart/mixed"})
24 @Consumes({"multipart/mixed"})
25 public interface OrgAuthorityProxy {
26
27     // List Orgauthorities
28     @GET
29     @Produces({"application/xml"})
30     ClientResponse<OrgauthoritiesCommonList> readList();
31
32     //(C)reate
33     @POST
34     ClientResponse<Response> create(MultipartOutput multipart);
35
36     //(R)ead
37     @GET
38     @Path("/{csid}")
39     ClientResponse<MultipartInput> read(@PathParam("csid") String csid);
40
41     //(U)pdate
42     @PUT
43     @Path("/{csid}")
44     ClientResponse<MultipartInput> update(@PathParam("csid") String csid, MultipartOutput multipart);
45
46     //(D)elete
47     @DELETE
48     @Path("/{csid}")
49     ClientResponse<Response> delete(@PathParam("csid") String csid);
50
51     // List Items
52     @GET
53     @Produces({"application/xml"})
54     @Path("/{vcsid}/items/")
55     ClientResponse<OrganizationsCommonList> readItemList(@PathParam("vcsid") String vcsid);
56
57     //(C)reate Item
58     @POST
59     @Path("/{vcsid}/items/")
60     ClientResponse<Response> createItem(@PathParam("vcsid") String vcsid, MultipartOutput multipart);
61
62     //(R)ead
63     @GET
64     @Path("/{vcsid}/items/{csid}")
65     ClientResponse<MultipartInput> readItem(@PathParam("vcsid") String vcsid, @PathParam("csid") String csid);
66
67     //(U)pdate
68     @PUT
69     @Path("/{vcsid}/items/{csid}")
70     ClientResponse<MultipartInput> updateItem(@PathParam("vcsid") String vcsid, @PathParam("csid") String csid, MultipartOutput multipart);
71
72     //(D)elete
73     @DELETE
74     @Path("/{vcsid}/items/{csid}")
75     ClientResponse<Response> deleteItem(@PathParam("vcsid") String vcsid, @PathParam("csid") String csid);
76 }