2 * This document is a part of the source code and related artifacts
3 * for CollectionSpace, an open source collections management system
4 * for museums and related institutions:
6 * http://www.collectionspace.org
7 * http://wiki.collectionspace.org
9 * Copyright 2009 University of California at Berkeley
11 * Licensed under the Educational Community License (ECL), Version 2.0.
12 * You may not use this file except in compliance with this License.
14 * You may obtain a copy of the ECL 2.0 License at
16 * https://source.collectionspace.org/collection-space/LICENSE.txt
18 * Unless required by applicable law or agreed to in writing, software
19 * distributed under the License is distributed on an "AS IS" BASIS,
20 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 * See the License for the specific language governing permissions and
22 * limitations under the License.
24 package org.collectionspace.services.taxonomy.nuxeo;
26 import org.collectionspace.services.client.CollectionSpaceClient;
27 import org.collectionspace.services.client.TaxonomyAuthorityClient;
30 * TaxonConstants provides constants for Taxonomy documents
33 public class TaxonConstants {
35 public final static String NUXEO_DOCTYPE = "Taxon";
36 public final static String NUXEO_SCHEMA_NAME = "taxon";
37 public final static String NUXEO_DC_TITLE = "CollectionSpace-Taxon";
39 public final static String CORE_SCHEMA_NAME = CollectionSpaceClient.COLLECTIONSPACE_CORE_SCHEMA;
40 public final static String COMMON_SCHEMA_NAME = TaxonomyAuthorityClient.SERVICE_ITEM_COMMON_PART_NAME; //"taxon_common";
42 public final static String IN_AUTHORITY_SCHEMA_NAME = COMMON_SCHEMA_NAME;
43 public final static String IN_AUTHORITY_FIELD_NAME = "inAuthority";
45 public final static String DISPLAY_NAME_SCHEMA_NAME = COMMON_SCHEMA_NAME;
46 public final static String DISPLAY_NAME_FIELD_NAME = "taxonTermGroupList/taxonTermGroup/termDisplayName";
48 public final static String FORMATTED_DISPLAY_NAME_SCHEMA_NAME = COMMON_SCHEMA_NAME;
49 public final static String FORMATTED_DISPLAY_NAME_FIELD_NAME = "taxonTermGroupList/taxonTermGroup/termFormattedDisplayName";
51 public final static String REFNAME_SCHEMA_NAME = COMMON_SCHEMA_NAME;
52 public final static String REFNAME_FIELD_NAME = "refName";
54 public static final String WORKFLOW_STATE_SCHEMA_NAME = CORE_SCHEMA_NAME;
55 public static final String WORKFLOW_STATE_FIELD_NAME = CollectionSpaceClient.COLLECTIONSPACE_CORE_WORKFLOWSTATE; //"workflowState";