]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
3ad7df37e3dd4d6e79bc24a06e458716ef446085
[tmp/jakarta-migration.git] /
1 package org.collectionspace.services.client;
2
3 import javax.ws.rs.Consumes;
4 import javax.ws.rs.GET;
5 import javax.ws.rs.Path;
6 import javax.ws.rs.PathParam;
7 import javax.ws.rs.Produces;
8 import javax.ws.rs.QueryParam;
9
10 import org.collectionspace.services.organization.OrgauthoritiesCommonList;
11 import org.collectionspace.services.organization.OrganizationsCommonList;
12 import org.collectionspace.services.client.workflow.WorkflowClient;
13
14 import org.jboss.resteasy.client.ClientResponse;
15
16 /**
17  * @version $Revision$
18  */
19 @Path(OrgAuthorityClient.SERVICE_PATH + "/")
20 @Produces({"application/xml"})
21 @Consumes({"application/xml"})
22 public interface OrgAuthorityProxy extends AuthorityWithContactsProxy<OrgauthoritiesCommonList, OrganizationsCommonList> {
23     // List OrgAuthorities
24     @GET
25     ClientResponse<OrgauthoritiesCommonList> readList();
26         
27     @Override
28         @GET
29     @Produces({"application/xml"})
30     ClientResponse<OrgauthoritiesCommonList> readIncludeDeleted(
31             @QueryParam(WorkflowClient.WORKFLOW_QUERY_NONDELETED) String includeDeleted);    
32     
33     /*
34      * List results that must be overridden for the RESTEasy proxy generation to work correctly.
35      */
36     
37     // List Items matching a partial term or keywords.
38     @Override
39         @GET
40     @Produces({"application/xml"})
41     @Path("/{csid}/items/")
42     ClientResponse<OrganizationsCommonList> readItemList(
43                 @PathParam("csid") String vcsid,
44             @QueryParam (IQueryManager.SEARCH_TYPE_PARTIALTERM) String partialTerm,
45             @QueryParam(IQueryManager.SEARCH_TYPE_KEYWORDS_KW) String keywords);
46     
47     // List Items for a named authority matching a partial term or keywords.
48     @Override
49         @GET
50     @Produces({"application/xml"})
51     @Path("/urn:cspace:name({specifier})/items/")
52     ClientResponse<OrganizationsCommonList> readItemListForNamedAuthority(
53                 @PathParam("specifier") String specifier,
54             @QueryParam (IQueryManager.SEARCH_TYPE_PARTIALTERM) String partialTerm,
55             @QueryParam(IQueryManager.SEARCH_TYPE_KEYWORDS_KW) String keywords);
56 }