001
014
015 package com.liferay.portlet.documentlibrary.context;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.servlet.taglib.ui.MenuItem;
019 import com.liferay.portal.kernel.servlet.taglib.ui.ToolbarItem;
020 import com.liferay.portlet.dynamicdatamapping.model.DDMStructure;
021 import com.liferay.portlet.dynamicdatamapping.storage.Fields;
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 List<DDMStructure> getDDMStructures() throws PortalException;
037
038 public Fields getFields(DDMStructure ddmStructure) throws PortalException;
039
040 public List<MenuItem> getMenuItems() throws PortalException;
041
042 public List<ToolbarItem> getToolbarItems() throws PortalException;
043
044 public boolean isAssetMetadataVisible() throws PortalException;
045
046 public boolean isCancelCheckoutDocumentButtonVisible()
047 throws PortalException;
048
049 public boolean isCheckinButtonVisible() throws PortalException;
050
051 public boolean isCheckoutDocumentButtonVisible() throws PortalException;
052
053 public boolean isDeleteButtonVisible() throws PortalException;
054
055 public boolean isDownloadButtonVisible() throws PortalException;
056
057 public boolean isEditButtonVisible() throws PortalException;
058
059 public boolean isMoveButtonVisible() throws PortalException;
060
061 public boolean isMoveToTheRecycleBinButtonVisible() throws PortalException;
062
063 public boolean isOpenInMsOfficeButtonVisible() throws PortalException;
064
065 public boolean isPermissionsButtonVisible() throws PortalException;
066
067 public boolean isViewButtonVisible() throws PortalException;
068
069 public boolean isViewOriginalFileButtonVisible() throws PortalException;
070
071 public void renderPreview(
072 HttpServletRequest request, HttpServletResponse response)
073 throws IOException, ServletException;
074
075 }