001/*
002 * (C) Copyright 2006-2009 Nuxeo SAS (http://nuxeo.com/) and contributors.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the GNU Lesser General Public License
006 * (LGPL) version 2.1 which accompanies this distribution, and is available at
007 * http://www.gnu.org/licenses/lgpl.html
008 *
009 * This library is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012 * Lesser General Public License for more details.
013 *
014 * Contributors:
015 *     Anahide Tchertchian
016 *     Eugen Ionica
017 */
018
019package org.nuxeo.ecm.platform.relations.api.util;
020
021import org.nuxeo.ecm.platform.relations.api.Resource;
022import org.nuxeo.ecm.platform.relations.api.impl.ResourceImpl;
023
024/**
025 * Constants for relations management.
026 *
027 * @author Anahide Tchertchian
028 * @author Eugen Ionica
029 */
030public class RelationConstants {
031
032    public static final String GRAPH_NAME = "default";
033
034    public static final String METADATA_NAMESPACE = "http://www.nuxeo.org/metadata/";
035
036    public static final String DOCUMENT_NAMESPACE = "http://www.nuxeo.org/document/uid/";
037
038    // statement metadata
039
040    public static final Resource TITLE = new ResourceImpl(METADATA_NAMESPACE + "title");
041
042    public static final Resource UUID = new ResourceImpl(METADATA_NAMESPACE + "uuid");
043
044    public static final Resource CREATION_DATE = new ResourceImpl(METADATA_NAMESPACE + "CreationDate");
045
046    public static final Resource MODIFICATION_DATE = new ResourceImpl(METADATA_NAMESPACE + "ModificationDate");
047
048    public static final Resource AUTHOR = new ResourceImpl(METADATA_NAMESPACE + "Author");
049
050    // XXX AT: for BBB, use a different namespace for comment
051    public static final Resource COMMENT = new ResourceImpl("http://www.nuxeo.org/comment");
052
053    public static final Resource COPY_FROM_WORK_VERSION = new ResourceImpl(METADATA_NAMESPACE
054            + "copy-from-work-version");
055
056    // Constant utility class
057    private RelationConstants() {
058    }
059
060}