001
014
015 package com.liferay.document.library.kernel.display.context;
016
017 import com.liferay.dynamic.data.mapping.kernel.DDMFormValues;
018 import com.liferay.dynamic.data.mapping.kernel.DDMStructure;
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.servlet.taglib.ui.Menu;
021 import com.liferay.portal.kernel.servlet.taglib.ui.ToolbarItem;
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
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 int getDDMStructuresCount() throws PortalException;
044
045 public Menu getMenu() throws PortalException;
046
047 public List<ToolbarItem> getToolbarItems() throws PortalException;
048
049 public boolean isDownloadLinkVisible() throws PortalException;
050
051 public boolean isVersionInfoVisible() throws PortalException;
052
053 public void renderPreview(
054 HttpServletRequest request, HttpServletResponse response)
055 throws IOException, ServletException;
056
057 }