001/*
002 * (C) Copyright 2006-2009 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 *     Anahide Tchertchian
018 *     Eugen Ionica
019 */
020
021package org.nuxeo.ecm.platform.relations.api.util;
022
023import org.nuxeo.ecm.platform.relations.api.Resource;
024import org.nuxeo.ecm.platform.relations.api.impl.ResourceImpl;
025
026/**
027 * Constants for relations management.
028 *
029 * @author Anahide Tchertchian
030 * @author Eugen Ionica
031 */
032public class RelationConstants {
033
034    public static final String GRAPH_NAME = "default";
035
036    public static final String METADATA_NAMESPACE = "http://www.nuxeo.org/metadata/";
037
038    public static final String DOCUMENT_NAMESPACE = "http://www.nuxeo.org/document/uid/";
039
040    // statement metadata
041
042    public static final Resource TITLE = new ResourceImpl(METADATA_NAMESPACE + "title");
043
044    public static final Resource UUID = new ResourceImpl(METADATA_NAMESPACE + "uuid");
045
046    public static final Resource CREATION_DATE = new ResourceImpl(METADATA_NAMESPACE + "CreationDate");
047
048    public static final Resource MODIFICATION_DATE = new ResourceImpl(METADATA_NAMESPACE + "ModificationDate");
049
050    public static final Resource AUTHOR = new ResourceImpl(METADATA_NAMESPACE + "Author");
051
052    // XXX AT: for BBB, use a different namespace for comment
053    public static final Resource COMMENT = new ResourceImpl("http://www.nuxeo.org/comment");
054
055    public static final Resource COPY_FROM_WORK_VERSION = new ResourceImpl(METADATA_NAMESPACE
056            + "copy-from-work-version");
057
058    // Constant utility class
059    private RelationConstants() {
060    }
061
062}