001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.documentlibrary.util; 016 017 import com.liferay.portal.kernel.repository.model.FileVersion; 018 019 /** 020 * Common interface for all the processors of the document library. All 021 * document library processors must implement this interface. 022 * 023 * @author Alexander Chow 024 * @author Mika Koivisto 025 * @see AudioProcessor 026 * @see DLPreviewableProcessor 027 * @see com.liferay.portal.kernel.image.ImageProcessor 028 * @see PDFProcessor 029 * @see com.liferay.portal.kernel.metadata.RawMetadataProcessor 030 * @see VideoProcessor 031 */ 032 public interface DLProcessor { 033 034 /** 035 * Launches the processor's work with respect to the given file version. 036 * 037 * @param fileVersion the latest file version to process 038 */ 039 public void trigger(FileVersion fileVersion); 040 041 }