001/* 002 * (C) Copyright 2006-2013 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 * Vladimir Pasquier <[email protected]> 018 * Laurent Doguin <[email protected]> 019 * 020 */ 021package org.nuxeo.ecm.platform.thumbnail; 022 023/** 024 * @since 5.7 025 */ 026public class ThumbnailConstants { 027 028 public static final String THUMBNAIL_FACET = "Thumbnail"; 029 030 public static final String THUMBNAIL_MIME_TYPE = "image/jpeg"; 031 032 public static final String THUMBNAIL_PROPERTY_NAME = "thumb:thumbnail"; 033 034 public static final String ANY_TO_THUMBNAIL_CONVERTER_NAME = "anyToThumbnail"; 035 036 public static final String PDF_AND_IMAGE_TO_THUMBNAIL_CONVERTER_NAME = "pdfAndImageToThumbnail"; 037 038 public static final String ANY_TO_PDF_TO_THUMBNAIL_CONVERTER_NAME = "anyToPdfToThumbnail"; 039 040 public static final String THUMBNAIL_SIZE_PARAMETER_NAME = "size"; 041 042 public static final String THUMBNAIL_DEFAULT_SIZE = "1000x1000"; 043 044 public enum EventNames { 045 /** 046 * Event sent after checking before updating document if the main blob has been updated 047 */ 048 scheduleThumbnailUpdate // NOSONAR (matches the event name) 049 } 050 051}