2 * CitationAuthorityClient.java
4 * This document is a part of the source code and related artifacts for
5 * CollectionSpace, an open source collections management system for museums and
6 * related institutions:
8 * http://www.collectionspace.org http://wiki.collectionspace.org
10 * Copyright © 2009 University of California, Berkeley
12 * Licensed under the Educational Community License (ECL), Version 2.0. You may
13 * not use this file except in compliance with this License.
15 * You may obtain a copy of the ECL 2.0 License at
16 * https://source.collectionspace.org/collection-space/LICENSE.txt
18 package org.collectionspace.services.client;
20 import org.collectionspace.services.citation.CitationsCommon;
23 * The Class CitationAuthorityClient.
25 public class CitationAuthorityClient extends AuthorityWithContactsClientImpl<CitationsCommon, CitationAuthorityProxy> {
27 public static final String SERVICE_NAME = "citationauthorities";
28 public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;
29 public static final String SERVICE_PATH = "/" + SERVICE_PATH_COMPONENT;
30 public static final String SERVICE_PAYLOAD_NAME = SERVICE_NAME;
31 public static final String TERM_INFO_GROUP_XPATH_BASE = "citationTermGroupList";
35 public static final String SERVICE_ITEM_NAME = "citations";
36 public static final String SERVICE_ITEM_PAYLOAD_NAME = SERVICE_ITEM_NAME;
38 // Payload Part/Schema part names
40 public static final String SERVICE_COMMON_PART_NAME = SERVICE_NAME
41 + PART_LABEL_SEPARATOR + PART_COMMON_LABEL;
42 public static final String SERVICE_ITEM_COMMON_PART_NAME = SERVICE_ITEM_NAME
43 + PART_LABEL_SEPARATOR + PART_COMMON_LABEL;
46 public String getServiceName() {
51 public String getServicePathComponent() {
52 return SERVICE_PATH_COMPONENT;
56 public String getItemCommonPartName() {
57 return getCommonPartName(SERVICE_ITEM_PAYLOAD_NAME);
60 @Deprecated // Use getItemCommonPartName() instead
61 public String getCommonPartItemName() {
62 return getCommonPartName(SERVICE_ITEM_PAYLOAD_NAME);
66 public Class<CitationAuthorityProxy> getProxyClass() {
67 return CitationAuthorityProxy.class;
71 public String getInAuthority(CitationsCommon item) {
72 return item.getInAuthority();
76 public void setInAuthority(CitationsCommon item, String inAuthorityCsid) {
77 item.setInAuthority(inAuthorityCsid);