2 * This document is a part of the source code and related artifacts
3 * for CollectionSpace, an open source collections management system
4 * for museums and related institutions:
6 * http://www.collectionspace.org
7 * http://wiki.collectionspace.org
9 * Copyright © 2009 Regents of the University of California
11 * Licensed under the Educational Community License (ECL), Version 2.0.
12 * You may not use this file except in compliance with this License.
14 * You may obtain a copy of the ECL 2.0 License at
16 * https://source.collectionspace.org/collection-space/LICENSE.txt
18 * Unless required by applicable law or agreed to in writing, software
19 * distributed under the License is distributed on an "AS IS" BASIS,
20 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 * See the License for the specific language governing permissions and
22 * limitations under the License.
24 package org.collectionspace.services.acquisition;
27 import javax.ws.rs.Consumes;
28 import javax.ws.rs.Path;
29 import javax.ws.rs.Produces;
31 import org.collectionspace.services.client.AcquisitionClient;
32 import org.collectionspace.services.common.ResourceBase;
34 import org.slf4j.Logger;
35 import org.slf4j.LoggerFactory;
38 * AcquisitionResource.java
40 * Handles requests to the Acquisition service, orchestrates the retrieval
41 * of relevant resources, and returns responses to the client.
43 @Path(AcquisitionClient.SERVICE_PATH)
44 @Produces({"application/xml"})
45 @Consumes({"application/xml"})
46 public class AcquisitionResource extends ResourceBase {
49 final Logger logger = LoggerFactory.getLogger(AcquisitionResource.class);
52 protected String getVersionString() {
53 final String lastChangeRevision = "$LastChangedRevision$";
54 return lastChangeRevision;
58 public String getServiceName() {
59 return AcquisitionClient.SERVICE_NAME;
63 public Class<AcquisitionsCommon> getCommonPartClass() {
64 return AcquisitionsCommon.class;
68 * Instantiates a new acquisition resource.
70 public AcquisitionResource() {
71 // Empty constructor. Note that all JAX-RS resource classes are singletons.