001    /**
002     * Copyright (c) 2000-present 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.portal.kernel.repository.capabilities;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.repository.model.FileEntry;
019    
020    /**
021     * @author Iv??n Zaera
022     */
023    public interface ThumbnailCapability extends Capability {
024    
025            public FileEntry fetchImageFileEntry(long imageId);
026    
027            public long getCustom1ImageId(FileEntry fileEntry);
028    
029            public long getCustom2ImageId(FileEntry fileEntry);
030    
031            public long getLargeImageId(FileEntry fileEntry);
032    
033            public long getSmallImageId(FileEntry fileEntry);
034    
035            public FileEntry setCustom1ImageId(FileEntry fileEntry, long imageId)
036                    throws PortalException;
037    
038            public FileEntry setCustom2ImageId(FileEntry fileEntry, long imageId)
039                    throws PortalException;
040    
041            public FileEntry setLargeImageId(FileEntry fileEntry, long imageId)
042                    throws PortalException;
043    
044            public FileEntry setSmallImageId(FileEntry fileEntry, long imageId)
045                    throws PortalException;
046    
047    }