2 * CollectionObjectProxy.java
4 * {Purpose of This Class}
6 * {Other Notes Relating to This Class (Optional)}
9 * $LastChangedRevision: $
12 * This document is a part of the source code and related artifacts
13 * for CollectionSpace, an open source collections management system
14 * for museums and related institutions:
16 * http://www.collectionspace.org
17 * http://wiki.collectionspace.org
19 * Copyright © 2009 {Contributing Institution}
21 * Licensed under the Educational Community License (ECL), Version 2.0.
22 * You may not use this file except in compliance with this License.
24 * You may obtain a copy of the ECL 2.0 License at
25 * https://source.collectionspace.org/collection-space/LICENSE.txt
27 package org.collectionspace.services.client;
29 import org.jboss.resteasy.client.ClientResponse;
30 import javax.ws.rs.Consumes;
31 import javax.ws.rs.GET;
32 import javax.ws.rs.Path;
33 import javax.ws.rs.PathParam;
34 import javax.ws.rs.QueryParam;
35 import javax.ws.rs.Produces;
36 import javax.ws.rs.core.Response;
38 import org.collectionspace.services.client.workflow.WorkflowClient;
39 import org.collectionspace.services.collectionobject.CollectionobjectsCommonList;
42 * @version $Revision:$
43 * FIXME: http://issues.collectionspace.org/browse/CSPACE-1684
45 @Path(CollectionObjectClient.SERVICE_PATH_PROXY)
46 @Produces({"application/xml"})
47 @Consumes({"application/xml"})
48 public interface CollectionObjectProxy extends CollectionSpacePoxProxy<CollectionobjectsCommonList> {
54 * @return the client response
57 @Path("/{ms}/roundtrip")
58 @Produces({"application/xml"})
59 ClientResponse<Response> roundtrip(@PathParam("ms") int ms);
64 * @return the client response
67 @Produces({"application/xml"})
68 ClientResponse<CollectionobjectsCommonList> readList();
72 @Produces({"application/xml"})
73 ClientResponse<CollectionobjectsCommonList> readIncludeDeleted(
74 @QueryParam(WorkflowClient.WORKFLOW_QUERY_NONDELETED) String includeDeleted);
79 * @param keywords the keywords
80 * @return the client response
83 @Produces({"application/xml"})
84 ClientResponse<CollectionobjectsCommonList> keywordSearch(
85 @QueryParam(IQueryManager.SEARCH_TYPE_KEYWORDS_KW) String keywords);