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.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) |
java.lang.String |
getIconFileMimeType() |
com.liferay.portal.kernel.servlet.taglib.ui.Menu |
getMenu() |
java.util.List<com.liferay.portal.kernel.servlet.taglib.ui.ToolbarItem> |
getToolbarItems() |
boolean |
hasCustomThumbnail() |
boolean |
hasPreview() |
boolean |
isActionsVisible() |
boolean |
isDownloadLinkVisible() |
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.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 java.lang.String getIconFileMimeType()
getIconFileMimeType
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 hasCustomThumbnail()
hasCustomThumbnail
in interface DLViewFileVersionDisplayContext
public boolean hasPreview()
hasPreview
in interface DLViewFileVersionDisplayContext
public boolean isActionsVisible()
isActionsVisible
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 isSharingLinkVisible() throws com.liferay.portal.kernel.exception.PortalException
isSharingLinkVisible
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 renderCustomThumbnail(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws java.io.IOException, javax.servlet.ServletException
renderCustomThumbnail
in interface DLViewFileVersionDisplayContext
java.io.IOException
javax.servlet.ServletException
public void renderPreview(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws java.io.IOException, javax.servlet.ServletException
renderPreview
in interface DLViewFileVersionDisplayContext
java.io.IOException
javax.servlet.ServletException