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.common.relation.nuxeo;
26 import org.collectionspace.services.client.IRelationsManager;
27 import org.collectionspace.services.relation.RelationshipType;
30 * RelationConstants processes Relation document
33 public class RelationConstants {
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";
40 public final static String COMMON_SCHEMA_NAME = IRelationsManager.SERVICE_COMMONPART_NAME;
42 public final static String SUBJECT_CSID_SCHEMA_NAME = COMMON_SCHEMA_NAME;
43 public final static String SUBJECT_CSID_FIELD_NAME = IRelationsManager.SUBJECT;
45 public final static String SUBJECT_DOCTYPE_SCHEMA_NAME = COMMON_SCHEMA_NAME;
46 public final static String SUBJECT_DOCTYPE_FIELD_NAME = IRelationsManager.SUBJECT_DOCTYPE;
48 public final static String OBJECT_CSID_SCHEMA_NAME = COMMON_SCHEMA_NAME;
49 public final static String OBJECT_CSID_FIELD_NAME = IRelationsManager.OBJECT;
51 public final static String OBJECT_DOCTYPE_SCHEMA_NAME = COMMON_SCHEMA_NAME;
52 public final static String OBJECT_DOCTYPE_FIELD_NAME = IRelationsManager.OBJECT_DOCTYPE;
54 public final static String TYPE_SCHEMA_NAME = COMMON_SCHEMA_NAME;
55 public final static String TYPE_FIELD_NAME = IRelationsManager.RELATIONSHIP_TYPE;
57 public final static String AFFECTS_TYPE = RelationshipType.AFFECTS.toString();
58 public final static String BROADER_TYPE = RelationshipType.HAS_BROADER.toString();