]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
9fe643945ed76b0abb71c9f873e22c75f3e93275
[tmp/jakarta-migration.git] /
1 /**
2  * LocationAuthorityClient.java
3  *
4  * {Purpose of This Class}
5  *
6  * {Other Notes Relating to This Class (Optional)}
7  *
8  * $LastChangedBy: $ $LastChangedRevision: $ $LastChangedDate: $
9  *
10  * This document is a part of the source code and related artifacts for
11  * CollectionSpace, an open source collections management system for museums and
12  * related institutions:
13  *
14  * http://www.collectionspace.org http://wiki.collectionspace.org
15  *
16  * Copyright © 2009 {Contributing Institution}
17  *
18  * Licensed under the Educational Community License (ECL), Version 2.0. You may
19  * not use this file except in compliance with this License.
20  *
21  * You may obtain a copy of the ECL 2.0 License at
22  * https://source.collectionspace.org/collection-space/LICENSE.txt
23  */
24 package org.collectionspace.services.client;
25
26 import org.collectionspace.services.location.LocationsCommon;
27
28 /**
29  * The Class LocationAuthorityClient.
30  */
31 public class LocationAuthorityClient extends AuthorityClientImpl<LocationsCommon, LocationAuthorityProxy> {
32
33     public static final String SERVICE_NAME = "locationauthorities";
34     public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;
35     public static final String SERVICE_PATH = "/" + SERVICE_PATH_COMPONENT;
36     public static final String SERVICE_PAYLOAD_NAME = SERVICE_NAME;
37     public static final String TERM_INFO_GROUP_XPATH_BASE = "locTermGroupList";
38     //
39     // Subitem constants
40     //
41     public static final String SERVICE_ITEM_NAME = "locations";
42     public static final String SERVICE_ITEM_PAYLOAD_NAME = SERVICE_ITEM_NAME;
43     //
44     // Payload Part/Schema part names
45     //
46     public static final String SERVICE_COMMON_PART_NAME = SERVICE_NAME
47             + PART_LABEL_SEPARATOR + PART_COMMON_LABEL;
48     public static final String SERVICE_ITEM_COMMON_PART_NAME = SERVICE_ITEM_NAME
49             + PART_LABEL_SEPARATOR + PART_COMMON_LABEL;
50
51     @Override
52     public String getServiceName() {
53         return SERVICE_NAME;
54     }
55
56     @Override
57     public String getServicePathComponent() {
58         return SERVICE_PATH_COMPONENT;
59     }
60
61     @Override
62     public String getItemCommonPartName() {
63         return getCommonPartName(SERVICE_ITEM_NAME);
64     }
65
66     @Override
67     public Class<LocationAuthorityProxy> getProxyClass() {
68         return LocationAuthorityProxy.class;
69     }
70
71     @Override
72     public String getInAuthority(LocationsCommon item) {
73         return item.getInAuthority();
74     }
75
76     @Override
77     public void setInAuthority(LocationsCommon item, String inAuthorityCsid) {
78         item.setInAuthority(inAuthorityCsid);
79     }
80 }