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.portlet.documentlibrary.display.context;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.servlet.taglib.ui.Menu;
019    import com.liferay.portal.kernel.servlet.taglib.ui.ToolbarItem;
020    import com.liferay.portlet.dynamicdatamapping.DDMFormValues;
021    import com.liferay.portlet.dynamicdatamapping.DDMStructure;
022    
023    import java.io.IOException;
024    
025    import java.util.List;
026    
027    import javax.servlet.ServletException;
028    import javax.servlet.http.HttpServletRequest;
029    import javax.servlet.http.HttpServletResponse;
030    
031    /**
032     * @author Iv??n Zaera
033     */
034    public interface DLViewFileVersionDisplayContext extends DLDisplayContext {
035    
036            public String getCssClassFileMimeType();
037    
038            public DDMFormValues getDDMFormValues(DDMStructure ddmStructure)
039                    throws PortalException;
040    
041            public List<DDMStructure> getDDMStructures() throws PortalException;
042    
043            public Menu getMenu() throws PortalException;
044    
045            public List<ToolbarItem> getToolbarItems() throws PortalException;
046    
047            public boolean isDownloadLinkVisible() throws PortalException;
048    
049            public boolean isVersionInfoVisible() throws PortalException;
050    
051            public void renderPreview(
052                            HttpServletRequest request, HttpServletResponse response)
053                    throws IOException, ServletException;
054    
055    }