001/* 002 * (C) Copyright 2010 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 * Contributors: 014 * Nuxeo - initial API and implementation 015 */ 016 017package org.nuxeo.ecm.platform.rendition; 018 019/** 020 * Constants used by the {@link org.nuxeo.ecm.platform.rendition.service.RenditionService}. 021 * 022 * @author <a href="mailto:troger@nuxeo.com">Thomas Roger</a> 023 * @since 5.4.1 024 */ 025public class Constants { 026 027 private Constants() { 028 // Constants class 029 } 030 031 public static final String RENDITION_FACET = "Rendition"; 032 033 public static final String FILES_SCHEMA = "files"; 034 035 public static final String FILES_FILES_PROPERTY = "files:files"; 036 037 public static final String RENDITION_SCHEMA = "rendition"; 038 039 // version from which the rendition was derived (or live doc if not versionable) 040 public static final String RENDITION_SOURCE_ID_PROPERTY = "rend:sourceId"; 041 042 // live doc if the rendition was derived from a versionable doc, otherwise null 043 public static final String RENDITION_SOURCE_VERSIONABLE_ID_PROPERTY = "rend:sourceVersionableId"; 044 045 // date the source doc was modified according to property named 046 // RenditionDefinition#sourceDocumentModificationDatePropertyName 047 public static final String RENDITION_SOURCE_MODIFICATION_DATE_PROPERTY = "rend:sourceModificationDate"; 048 049 public static final String RENDITION_NAME_PROPERTY = "rend:renditionName"; 050}