2 * This document is a part of the source code and related artifacts for
3 * CollectionSpace, an open source collections management system for museums and
4 * related institutions:
6 * http://www.collectionspace.org http://wiki.collectionspace.org
8 * Copyright © 2009 The Regents of the University of California
10 * Licensed under the Educational Community License (ECL), Version 2.0. You may
11 * not use this file except in compliance with this License.
13 * You may obtain a copy of the ECL 2.0 License at
14 * https://source.collectionspace.org/collection-space/LICENSE.txt
16 package org.collectionspace.services.client;
18 import org.collectionspace.services.material.MaterialauthoritiesCommon;
19 import org.collectionspace.services.material.MaterialsCommon;
22 * The Class MaterialAuthorityClient.
24 public class MaterialAuthorityClient extends AuthorityClientImpl<MaterialauthoritiesCommon, MaterialsCommon, MaterialAuthorityProxy> {
26 public static final String SERVICE_NAME = "materialauthorities";
27 public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;
28 public static final String SERVICE_PATH = "/" + SERVICE_PATH_COMPONENT;
29 public static final String SERVICE_PAYLOAD_NAME = SERVICE_NAME;
30 public static final String TERM_INFO_GROUP_XPATH_BASE = "materialTermGroupList";
34 public static final String SERVICE_ITEM_NAME = "materials";
35 public static final String SERVICE_ITEM_PAYLOAD_NAME = SERVICE_ITEM_NAME;
37 // Payload Part/Schema part names
39 public static final String SERVICE_COMMON_PART_NAME = SERVICE_NAME
40 + PART_LABEL_SEPARATOR + PART_COMMON_LABEL;
41 public static final String SERVICE_ITEM_COMMON_PART_NAME = SERVICE_ITEM_NAME
42 + PART_LABEL_SEPARATOR + PART_COMMON_LABEL;
47 public MaterialAuthorityClient() throws Exception {
51 public MaterialAuthorityClient(String clientPropertiesFilename) throws Exception {
52 super(clientPropertiesFilename);
56 public String getServiceName() {
61 public String getServicePathComponent() {
62 return SERVICE_PATH_COMPONENT;
66 public String getItemCommonPartName() {
67 return getCommonPartName(SERVICE_ITEM_NAME);
71 public Class<MaterialAuthorityProxy> getProxyClass() {
72 return MaterialAuthorityProxy.class;
76 public String getInAuthority(MaterialsCommon item) {
77 return item.getInAuthority();
81 public void setInAuthority(MaterialsCommon item, String inAuthorityCsid) {
82 item.setInAuthority(inAuthorityCsid);