1 package org.collectionspace.services.client;
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;
10 import org.collectionspace.services.organization.OrgauthoritiesCommonList;
11 import org.collectionspace.services.organization.OrganizationsCommonList;
12 import org.collectionspace.services.client.workflow.WorkflowClient;
14 import org.jboss.resteasy.client.ClientResponse;
19 @Path(OrgAuthorityClient.SERVICE_PATH + "/")
20 @Produces({"application/xml"})
21 @Consumes({"application/xml"})
22 public interface OrgAuthorityProxy extends AuthorityWithContactsProxy<OrgauthoritiesCommonList, OrganizationsCommonList> {
23 // List OrgAuthorities
25 ClientResponse<OrgauthoritiesCommonList> readList();
29 @Produces({"application/xml"})
30 ClientResponse<OrgauthoritiesCommonList> readIncludeDeleted(
31 @QueryParam(WorkflowClient.WORKFLOW_QUERY_NONDELETED) String includeDeleted);
34 * List results that must be overridden for the RESTEasy proxy generation to work correctly.
37 // List Items matching a partial term or keywords.
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);
47 // List Items for a named authority matching a partial term or keywords.
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);