]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
ed2ac881f12ed9c8872edcc6b9aae072194220e9
[tmp/jakarta-migration.git] /
1 /**
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:
5
6  *  http://www.collectionspace.org
7  *  http://wiki.collectionspace.org
8
9  *  Copyright 2009 University of California at Berkeley
10
11  *  Licensed under the Educational Community License (ECL), Version 2.0.
12  *  You may not use this file except in compliance with this License.
13
14  *  You may obtain a copy of the ECL 2.0 License at
15
16  *  https://source.collectionspace.org/collection-space/LICENSE.txt
17
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.
23  */
24 package org.collectionspace.services.taxonomy.nuxeo;
25
26 import org.collectionspace.services.client.CollectionSpaceClient;
27 import org.collectionspace.services.client.TaxonomyAuthorityClient;
28
29 /**
30  * TaxonConstants provides constants for Taxonomy documents
31  *
32  */
33 public class TaxonConstants {
34
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";
38
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";
41     
42     public final static String IN_AUTHORITY_SCHEMA_NAME = COMMON_SCHEMA_NAME;
43     public final static String IN_AUTHORITY_FIELD_NAME = "inAuthority";
44
45     public final static String DISPLAY_NAME_SCHEMA_NAME = COMMON_SCHEMA_NAME;
46     public final static String DISPLAY_NAME_FIELD_NAME = "taxonTermGroupList/taxonTermGroup/termDisplayName";
47     
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";
50     
51     public final static String REFNAME_SCHEMA_NAME = COMMON_SCHEMA_NAME;
52     public final static String REFNAME_FIELD_NAME = "refName";    
53     
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";    
56 }