]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
b8a272b24a5f985847ba67c1cc12521a74241859
[tmp/jakarta-migration.git] /
1 /**
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:
5  *
6  *  http://www.collectionspace.org
7  *  http://wiki.collectionspace.org
8  *
9  *  Copyright © 2009 Regents of the University of California
10  *
11  *  Licensed under the Educational Community License (ECL), Version 2.0.
12  *  You may not use this file except in compliance with this License.
13  *
14  *  You may obtain a copy of the ECL 2.0 License at
15  *
16  *  https://source.collectionspace.org/collection-space/LICENSE.txt
17  *
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.
23  */
24 package org.collectionspace.services.acquisition;
25
26
27 import javax.ws.rs.Consumes;
28 import javax.ws.rs.Path;
29 import javax.ws.rs.Produces;
30
31 import org.collectionspace.services.client.AcquisitionClient;
32 import org.collectionspace.services.common.ResourceBase;
33
34 import org.slf4j.Logger;
35 import org.slf4j.LoggerFactory;
36
37 /**
38  * AcquisitionResource.java
39  *
40  * Handles requests to the Acquisition service, orchestrates the retrieval
41  * of relevant resources, and returns responses to the client.
42  */
43 @Path(AcquisitionClient.SERVICE_PATH)
44 @Produces({"application/xml"})
45 @Consumes({"application/xml"})
46 public class AcquisitionResource extends ResourceBase {
47
48     /** The logger. */
49     final Logger logger = LoggerFactory.getLogger(AcquisitionResource.class);
50
51     @Override
52     protected String getVersionString() {
53         final String lastChangeRevision = "$LastChangedRevision$";
54         return lastChangeRevision;
55     }
56
57     @Override
58     public String getServiceName() {
59         return AcquisitionClient.SERVICE_NAME;
60     }
61
62     @Override
63     public Class<AcquisitionsCommon> getCommonPartClass() {
64         return AcquisitionsCommon.class;
65     }
66
67     /**
68      * Instantiates a new acquisition resource.
69      */
70     public AcquisitionResource() {
71         // Empty constructor.  Note that all JAX-RS resource classes are singletons.
72     }
73
74
75 }