]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
0ce4b6e30c981be9d3474419d0354c316919be95
[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  * Licensed under the Educational Community License (ECL), Version 2.0.
10  * You may not use this file except in compliance with this License.
11  *
12  * You may obtain a copy of the ECL 2.0 License at
13  *
14  * https://source.collectionspace.org/collection-space/LICENSE.txt
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  */
22 package org.collectionspace.services.dutyofcare;
23
24 import javax.ws.rs.Consumes;
25 import javax.ws.rs.Path;
26 import javax.ws.rs.Produces;
27 import org.collectionspace.services.client.DutyofcareClient;
28 import org.collectionspace.services.common.NuxeoBasedResource;
29 import org.slf4j.Logger;
30 import org.slf4j.LoggerFactory;
31
32 @Path(DutyofcareClient.SERVICE_PATH)
33 @Consumes("application/xml")
34 @Produces("application/xml")
35 public class DutyofcareResource extends NuxeoBasedResource {
36
37     final Logger logger = LoggerFactory.getLogger(DutyofcareResource.class);
38
39     @Override
40     protected String getVersionString() {
41         final String lastChangeRevision = "$LastChangedRevision$";
42         return lastChangeRevision;
43     }
44
45     @Override
46     public String getServiceName() {
47         return DutyofcareClient.SERVICE_NAME;
48     }
49
50     @Override
51     public Class<DutyofcaresCommon> getCommonPartClass() {
52         return DutyofcaresCommon.class;
53     }
54 }