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 javax.ws.rs.PathParam;
30 import javax.ws.rs.core.Response;
32 //import org.collectionspace.services.common.authorityref.AuthorityRefList;
33 import org.collectionspace.services.common.authorityref.AuthorityRefDocList;
34 import org.collectionspace.services.contact.ContactsCommonList;
35 import org.collectionspace.services.taxonomy.TaxonomyauthorityCommonList;
36 import org.collectionspace.services.taxonomy.TaxonCommonList;
37 import org.collectionspace.services.client.TaxonomyAuthorityProxy;
39 import org.jboss.resteasy.client.ClientResponse;
40 import org.jboss.resteasy.client.ProxyFactory;
41 import org.jboss.resteasy.client.core.executors.ApacheHttpClientExecutor;
42 import org.jboss.resteasy.plugins.providers.RegisterBuiltin;
43 import org.jboss.resteasy.spi.ResteasyProviderFactory;
46 * The Class TaxonomyAuthorityClient.
48 public class TaxonomyAuthorityClient extends AuthorityClientImpl<TaxonomyauthorityCommonList, TaxonCommonList, TaxonomyAuthorityProxy> {
50 public static final String SERVICE_NAME = "taxonomyauthorities";
51 public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;
52 public static final String SERVICE_PATH = "/" + SERVICE_PATH_COMPONENT;
53 public static final String SERVICE_PAYLOAD_NAME = "taxonomyauthority";
57 public static final String SERVICE_ITEM_NAME = "taxon";
58 public static final String SERVICE_ITEM_PAYLOAD_NAME = SERVICE_ITEM_NAME;
60 // Payload Part/Schema part names
62 public static final String SERVICE_COMMON_PART_NAME = SERVICE_NAME
63 + PART_LABEL_SEPARATOR + PART_COMMON_LABEL;
64 public static final String SERVICE_ITEM_COMMON_PART_NAME = SERVICE_ITEM_NAME
65 + PART_LABEL_SEPARATOR + PART_COMMON_LABEL;
68 public String getServiceName() {
73 public String getServicePathComponent() {
74 return SERVICE_PATH_COMPONENT;
78 public String getCommonPartName() {
79 return getCommonPartName(SERVICE_PAYLOAD_NAME);
83 public String getItemCommonPartName() {
84 return getCommonPartName(SERVICE_ITEM_NAME);
88 public Class<TaxonomyAuthorityProxy> getProxyClass() {
89 return TaxonomyAuthorityProxy.class;
93 * Proxied service calls.
97 * @see org.collectionspace.services.client.TaxonomyAuthorityProxy#readList()
99 public ClientResponse<TaxonomyauthorityCommonList> readList() {
100 return getProxy().readList();