public class BaseDLViewFileVersionDisplayContext extends BaseDLDisplayContext<DLViewFileVersionDisplayContext> implements DLViewFileVersionDisplayContext
Modifier and Type | Field and Description |
---|---|
protected com.liferay.portal.kernel.repository.model.FileVersion |
fileVersion |
Constructor and Description |
---|
BaseDLViewFileVersionDisplayContext(java.util.UUID uuid,
DLViewFileVersionDisplayContext parentDLDisplayContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCssClassFileMimeType() |
com.liferay.dynamic.data.mapping.storage.DDMFormValues |
getDDMFormValues(com.liferay.dynamic.data.mapping.kernel.DDMStructure ddmStructure) |
com.liferay.dynamic.data.mapping.storage.DDMFormValues |
getDDMFormValues(long ddmStorageId) |
java.util.List<com.liferay.dynamic.data.mapping.kernel.DDMStructure> |
getDDMStructures() |
int |
getDDMStructuresCount() |
java.lang.String |
getDiscussionClassName() |
long |
getDiscussionClassPK() |
java.lang.String |
getDiscussionLabel(java.util.Locale locale) |
com.liferay.portal.kernel.servlet.taglib.ui.Menu |
getMenu() |
java.util.List<com.liferay.portal.kernel.servlet.taglib.ui.ToolbarItem> |
getToolbarItems() |
boolean |
hasPreview() |
boolean |
isDownloadLinkVisible() |
boolean |
isVersionInfoVisible() |
void |
renderPreview(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected com.liferay.portal.kernel.repository.model.FileVersion fileVersion
public BaseDLViewFileVersionDisplayContext(java.util.UUID uuid, DLViewFileVersionDisplayContext parentDLDisplayContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
public java.lang.String getCssClassFileMimeType()
getCssClassFileMimeType
in interface DLViewFileVersionDisplayContext
public com.liferay.dynamic.data.mapping.storage.DDMFormValues getDDMFormValues(com.liferay.dynamic.data.mapping.kernel.DDMStructure ddmStructure) throws com.liferay.portal.kernel.exception.PortalException
getDDMFormValues
in interface DLViewFileVersionDisplayContext
com.liferay.portal.kernel.exception.PortalException
public com.liferay.dynamic.data.mapping.storage.DDMFormValues getDDMFormValues(long ddmStorageId) throws com.liferay.portal.kernel.exception.PortalException
getDDMFormValues
in interface DLViewFileVersionDisplayContext
com.liferay.portal.kernel.exception.PortalException
public java.util.List<com.liferay.dynamic.data.mapping.kernel.DDMStructure> getDDMStructures() throws com.liferay.portal.kernel.exception.PortalException
getDDMStructures
in interface DLViewFileVersionDisplayContext
com.liferay.portal.kernel.exception.PortalException
public int getDDMStructuresCount() throws com.liferay.portal.kernel.exception.PortalException
getDDMStructuresCount
in interface DLViewFileVersionDisplayContext
com.liferay.portal.kernel.exception.PortalException
public java.lang.String getDiscussionClassName()
getDiscussionClassName
in interface DLViewFileVersionDisplayContext
public long getDiscussionClassPK()
getDiscussionClassPK
in interface DLViewFileVersionDisplayContext
public java.lang.String getDiscussionLabel(java.util.Locale locale)
getDiscussionLabel
in interface DLViewFileVersionDisplayContext
public com.liferay.portal.kernel.servlet.taglib.ui.Menu getMenu() throws com.liferay.portal.kernel.exception.PortalException
getMenu
in interface DLViewFileVersionDisplayContext
com.liferay.portal.kernel.exception.PortalException
public java.util.List<com.liferay.portal.kernel.servlet.taglib.ui.ToolbarItem> getToolbarItems() throws com.liferay.portal.kernel.exception.PortalException
getToolbarItems
in interface DLViewFileVersionDisplayContext
com.liferay.portal.kernel.exception.PortalException
public boolean hasPreview()
hasPreview
in interface DLViewFileVersionDisplayContext
public boolean isDownloadLinkVisible() throws com.liferay.portal.kernel.exception.PortalException
isDownloadLinkVisible
in interface DLViewFileVersionDisplayContext
com.liferay.portal.kernel.exception.PortalException
public boolean isVersionInfoVisible() throws com.liferay.portal.kernel.exception.PortalException
isVersionInfoVisible
in interface DLViewFileVersionDisplayContext
com.liferay.portal.kernel.exception.PortalException
public void renderPreview(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
renderPreview
in interface DLViewFileVersionDisplayContext
java.io.IOException
javax.servlet.ServletException