]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
798da03d2c6b16c8930f465beb9fde8fef974212
[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.common.relation.nuxeo;
25
26 import org.collectionspace.services.client.IRelationsManager;
27 import org.collectionspace.services.relation.RelationshipType;
28
29 /**
30  * RelationConstants processes Relation document
31  *
32  */
33 public class RelationConstants {
34
35     public final static String NUXEO_DOCTYPE = "Relation";
36     public final static String NUXEO_SCHEMA_NAME = "relations_common";
37     /** The Constant REL_NUXEO_SCHEMA_ROOT_ELEMENT. */
38     final public static String NUXEO_SCHEMA_ROOT_ELEMENT = "relationtype";
39     
40     public final static String COMMON_SCHEMA_NAME = IRelationsManager.SERVICE_COMMONPART_NAME;
41
42     public final static String SUBJECT_CSID_SCHEMA_NAME = COMMON_SCHEMA_NAME;
43     public final static String SUBJECT_CSID_FIELD_NAME = IRelationsManager.SUBJECT;
44
45     public final static String SUBJECT_DOCTYPE_SCHEMA_NAME = COMMON_SCHEMA_NAME;
46     public final static String SUBJECT_DOCTYPE_FIELD_NAME = IRelationsManager.SUBJECT_DOCTYPE;
47
48     public final static String OBJECT_CSID_SCHEMA_NAME = COMMON_SCHEMA_NAME;
49     public final static String OBJECT_CSID_FIELD_NAME = IRelationsManager.OBJECT;
50
51     public final static String OBJECT_DOCTYPE_SCHEMA_NAME = COMMON_SCHEMA_NAME;
52     public final static String OBJECT_DOCTYPE_FIELD_NAME = IRelationsManager.OBJECT_DOCTYPE;
53     
54     public final static String TYPE_SCHEMA_NAME = COMMON_SCHEMA_NAME;
55     public final static String TYPE_FIELD_NAME = IRelationsManager.RELATIONSHIP_TYPE;
56     
57     public final static String AFFECTS_TYPE = RelationshipType.AFFECTS.toString();
58     public final static String BROADER_TYPE = RelationshipType.HAS_BROADER.toString();
59 }