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.common.authorityref.AuthorityRefList;
11 import org.collectionspace.services.organization.OrgauthoritiesCommonList;
12 import org.collectionspace.services.organization.OrganizationsCommonList;
13 import org.collectionspace.services.person.PersonauthoritiesCommonList;
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<OrganizationsCommonList> {
23 // List OrgAuthorities
25 ClientResponse<OrgauthoritiesCommonList> readList();
28 * List results that must be overridden for the RESTEasy proxy generation to work correctly.
31 // List Items matching a partial term or keywords.
34 @Produces({"application/xml"})
35 @Path("/{csid}/items/")
36 ClientResponse<OrganizationsCommonList> readItemList(
37 @PathParam("csid") String vcsid,
38 @QueryParam (IQueryManager.SEARCH_TYPE_PARTIALTERM) String partialTerm,
39 @QueryParam(IQueryManager.SEARCH_TYPE_KEYWORDS_KW) String keywords);
41 // List Items for a named authority matching a partial term or keywords.
44 @Produces({"application/xml"})
45 @Path("/urn:cspace:name({specifier})/items/")
46 ClientResponse<OrganizationsCommonList> readItemListForNamedAuthority(
47 @PathParam("specifier") String specifier,
48 @QueryParam (IQueryManager.SEARCH_TYPE_PARTIALTERM) String partialTerm,
49 @QueryParam(IQueryManager.SEARCH_TYPE_KEYWORDS_KW) String keywords);