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 httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<com.liferay.frontend.taglib.clay.servlet.taglib.util.DropdownItem> |
getActionDropdownItems() |
java.lang.String |
getCssClassFileMimeType() |
com.liferay.dynamic.data.mapping.storage.DDMFormValues |
getDDMFormValues(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure) |
com.liferay.dynamic.data.mapping.storage.DDMFormValues |
getDDMFormValues(long ddmStorageId) |
java.util.List<com.liferay.dynamic.data.mapping.model.DDMStructure> |
getDDMStructures() |
int |
getDDMStructuresCount() |
java.lang.String |
getDiscussionClassName() |
long |
getDiscussionClassPK() |
java.lang.String |
getDiscussionLabel(java.util.Locale locale) |
java.lang.String |
getIconFileMimeType() |
boolean |
hasCustomThumbnail() |
boolean |
hasPreview() |
boolean |
isActionsVisible() |
boolean |
isDownloadLinkVisible() |
boolean |
isShared() |
boolean |
isSharingLinkVisible() |
boolean |
isVersionInfoVisible() |
void |
renderCustomThumbnail(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
void |
renderPreview(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
protected com.liferay.portal.kernel.repository.model.FileVersion fileVersion
public BaseDLViewFileVersionDisplayContext(java.util.UUID uuid,
DLViewFileVersionDisplayContext parentDLDisplayContext,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
public java.util.List<com.liferay.frontend.taglib.clay.servlet.taglib.util.DropdownItem> getActionDropdownItems()
throws com.liferay.portal.kernel.exception.PortalException
getActionDropdownItems in interface DLViewFileVersionDisplayContextcom.liferay.portal.kernel.exception.PortalExceptionpublic java.lang.String getCssClassFileMimeType()
getCssClassFileMimeType in interface DLViewFileVersionDisplayContextpublic com.liferay.dynamic.data.mapping.storage.DDMFormValues getDDMFormValues(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure)
throws com.liferay.portal.kernel.exception.PortalException
getDDMFormValues in interface DLViewFileVersionDisplayContextcom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.dynamic.data.mapping.storage.DDMFormValues getDDMFormValues(long ddmStorageId)
throws com.liferay.portal.kernel.exception.PortalException
getDDMFormValues in interface DLViewFileVersionDisplayContextcom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<com.liferay.dynamic.data.mapping.model.DDMStructure> getDDMStructures()
throws com.liferay.portal.kernel.exception.PortalException
getDDMStructures in interface DLViewFileVersionDisplayContextcom.liferay.portal.kernel.exception.PortalExceptionpublic int getDDMStructuresCount()
throws com.liferay.portal.kernel.exception.PortalException
getDDMStructuresCount in interface DLViewFileVersionDisplayContextcom.liferay.portal.kernel.exception.PortalExceptionpublic java.lang.String getDiscussionClassName()
getDiscussionClassName in interface DLViewFileVersionDisplayContextpublic long getDiscussionClassPK()
getDiscussionClassPK in interface DLViewFileVersionDisplayContextpublic java.lang.String getDiscussionLabel(java.util.Locale locale)
getDiscussionLabel in interface DLViewFileVersionDisplayContextpublic java.lang.String getIconFileMimeType()
getIconFileMimeType in interface DLViewFileVersionDisplayContextpublic boolean hasCustomThumbnail()
hasCustomThumbnail in interface DLViewFileVersionDisplayContextpublic boolean hasPreview()
hasPreview in interface DLViewFileVersionDisplayContextpublic boolean isActionsVisible()
isActionsVisible in interface DLViewFileVersionDisplayContextpublic boolean isDownloadLinkVisible()
throws com.liferay.portal.kernel.exception.PortalException
isDownloadLinkVisible in interface DLViewFileVersionDisplayContextcom.liferay.portal.kernel.exception.PortalExceptionpublic boolean isShared()
throws com.liferay.portal.kernel.exception.PortalException
isShared in interface DLViewFileVersionDisplayContextcom.liferay.portal.kernel.exception.PortalExceptionpublic boolean isSharingLinkVisible()
throws com.liferay.portal.kernel.exception.PortalException
isSharingLinkVisible in interface DLViewFileVersionDisplayContextcom.liferay.portal.kernel.exception.PortalExceptionpublic boolean isVersionInfoVisible()
throws com.liferay.portal.kernel.exception.PortalException
isVersionInfoVisible in interface DLViewFileVersionDisplayContextcom.liferay.portal.kernel.exception.PortalExceptionpublic void renderCustomThumbnail(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws java.io.IOException,
javax.servlet.ServletException
renderCustomThumbnail in interface DLViewFileVersionDisplayContextjava.io.IOExceptionjavax.servlet.ServletExceptionpublic void renderPreview(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws java.io.IOException,
javax.servlet.ServletException
renderPreview in interface DLViewFileVersionDisplayContextjava.io.IOExceptionjavax.servlet.ServletException