2 * TaxonomyAuthorityClient.java
4 * {Purpose of This Class}
6 * {Other Notes Relating to This Class (Optional)}
9 * $LastChangedRevision$
12 * This document is a part of the source code and related artifacts
13 * for CollectionSpace, an open source collections management system
14 * for museums and related institutions:
16 * http://www.collectionspace.org
17 * http://wiki.collectionspace.org
19 * Copyright © 2009 {Contributing Institution}
21 * Licensed under the Educational Community License (ECL), Version 2.0.
22 * You may not use this file except in compliance with this License.
24 * You may obtain a copy of the ECL 2.0 License at
25 * https://source.collectionspace.org/collection-space/LICENSE.txt
27 package org.collectionspace.services.client;
29 import org.collectionspace.services.taxonomy.TaxonCommon;
32 * The Class TaxonomyAuthorityClient.
34 public class TaxonomyAuthorityClient extends AuthorityClientImpl<TaxonCommon, TaxonomyAuthorityProxy> {
36 public static final String SERVICE_NAME = "taxonomyauthority";
37 public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;
38 public static final String SERVICE_PATH = "/" + SERVICE_PATH_COMPONENT;
39 public static final String SERVICE_PAYLOAD_NAME = SERVICE_NAME;
40 public static final String TERM_INFO_GROUP_XPATH_BASE = "taxonTermGroupList";
44 public static final String SERVICE_ITEM_NAME = "taxon";
45 public static final String SERVICE_ITEM_PAYLOAD_NAME = SERVICE_ITEM_NAME;
47 // Payload Part/Schema part names
49 public static final String SERVICE_COMMON_PART_NAME = SERVICE_NAME
50 + PART_LABEL_SEPARATOR + PART_COMMON_LABEL;
51 public static final String SERVICE_ITEM_COMMON_PART_NAME = SERVICE_ITEM_NAME
52 + PART_LABEL_SEPARATOR + PART_COMMON_LABEL;
57 public TaxonomyAuthorityClient() {
61 public TaxonomyAuthorityClient(String clientPropertiesFilename) {
62 super(clientPropertiesFilename);
66 public String getServiceName() {
71 public String getServicePathComponent() {
72 return SERVICE_PATH_COMPONENT;
76 public String getItemCommonPartName() {
77 return getCommonPartName(SERVICE_ITEM_PAYLOAD_NAME);
81 public Class<TaxonomyAuthorityProxy> getProxyClass() {
82 return TaxonomyAuthorityProxy.class;
86 public String getInAuthority(TaxonCommon item) {
87 return item.getInAuthority();
91 public void setInAuthority(TaxonCommon item, String inAuthorityCsid) {
92 item.setInAuthority(inAuthorityCsid);