Class BaseDLViewFileVersionDisplayContext
java.lang.Object
com.liferay.portal.kernel.display.context.BaseDisplayContext<T>
com.liferay.document.library.display.context.BaseDLDisplayContext<DLViewFileVersionDisplayContext>
com.liferay.document.library.display.context.BaseDLViewFileVersionDisplayContext
- All Implemented Interfaces:
DLDisplayContext,DLViewFileVersionDisplayContext,com.liferay.portal.kernel.display.context.DisplayContext
public class BaseDLViewFileVersionDisplayContext
extends BaseDLDisplayContext<DLViewFileVersionDisplayContext>
implements DLViewFileVersionDisplayContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.liferay.portal.kernel.repository.model.FileVersionFields inherited from class com.liferay.portal.kernel.display.context.BaseDisplayContext
parentDisplayContext, request, response -
Constructor Summary
ConstructorsConstructorDescriptionBaseDLViewFileVersionDisplayContext(UUID uuid, DLViewFileVersionDisplayContext parentDLDisplayContext, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, com.liferay.portal.kernel.repository.model.FileVersion fileVersion) -
Method Summary
Modifier and TypeMethodDescriptionList<com.liferay.frontend.taglib.clay.servlet.taglib.util.DropdownItem>com.liferay.dynamic.data.mapping.storage.DDMFormValuesgetDDMFormValues(long ddmStorageId) com.liferay.dynamic.data.mapping.storage.DDMFormValuesgetDDMFormValues(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure) List<com.liferay.dynamic.data.mapping.model.DDMStructure>intlonggetDiscussionLabel(Locale locale) booleanbooleanbooleanbooleanbooleanbooleanisShared()booleanbooleanvoidrenderCustomThumbnail(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) voidrenderPreview(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) Methods inherited from class com.liferay.portal.kernel.display.context.BaseDisplayContext
getUuidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.display.context.DisplayContext
getUuid
-
Field Details
-
fileVersion
protected com.liferay.portal.kernel.repository.model.FileVersion fileVersion
-
-
Constructor Details
-
BaseDLViewFileVersionDisplayContext
public BaseDLViewFileVersionDisplayContext(UUID uuid, DLViewFileVersionDisplayContext parentDLDisplayContext, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
-
-
Method Details
-
getActionDropdownItems
public List<com.liferay.frontend.taglib.clay.servlet.taglib.util.DropdownItem> getActionDropdownItems() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getActionDropdownItemsin interfaceDLViewFileVersionDisplayContext- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCssClassFileMimeType
- Specified by:
getCssClassFileMimeTypein interfaceDLViewFileVersionDisplayContext
-
getDDMFormValues
public com.liferay.dynamic.data.mapping.storage.DDMFormValues getDDMFormValues(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getDDMFormValuesin interfaceDLViewFileVersionDisplayContext- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDDMFormValues
public com.liferay.dynamic.data.mapping.storage.DDMFormValues getDDMFormValues(long ddmStorageId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getDDMFormValuesin interfaceDLViewFileVersionDisplayContext- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDDMStructures
public List<com.liferay.dynamic.data.mapping.model.DDMStructure> getDDMStructures() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getDDMStructuresin interfaceDLViewFileVersionDisplayContext- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDDMStructuresCount
public int getDDMStructuresCount() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getDDMStructuresCountin interfaceDLViewFileVersionDisplayContext- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDiscussionClassName
- Specified by:
getDiscussionClassNamein interfaceDLViewFileVersionDisplayContext
-
getDiscussionClassPK
public long getDiscussionClassPK()- Specified by:
getDiscussionClassPKin interfaceDLViewFileVersionDisplayContext
-
getDiscussionLabel
- Specified by:
getDiscussionLabelin interfaceDLViewFileVersionDisplayContext
-
getIconFileMimeType
- Specified by:
getIconFileMimeTypein interfaceDLViewFileVersionDisplayContext
-
hasApprovedVersion
public boolean hasApprovedVersion()- Specified by:
hasApprovedVersionin interfaceDLViewFileVersionDisplayContext
-
hasCustomThumbnail
public boolean hasCustomThumbnail()- Specified by:
hasCustomThumbnailin interfaceDLViewFileVersionDisplayContext
-
hasPreview
public boolean hasPreview()- Specified by:
hasPreviewin interfaceDLViewFileVersionDisplayContext
-
isActionsVisible
public boolean isActionsVisible()- Specified by:
isActionsVisiblein interfaceDLViewFileVersionDisplayContext
-
isDownloadLinkVisible
public boolean isDownloadLinkVisible() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
isDownloadLinkVisiblein interfaceDLViewFileVersionDisplayContext- Throws:
com.liferay.portal.kernel.exception.PortalException
-
isSharingLinkVisible
public boolean isSharingLinkVisible() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
isSharingLinkVisiblein interfaceDLViewFileVersionDisplayContext- Throws:
com.liferay.portal.kernel.exception.PortalException
-
isVersionInfoVisible
public boolean isVersionInfoVisible() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
isVersionInfoVisiblein interfaceDLViewFileVersionDisplayContext- Throws:
com.liferay.portal.kernel.exception.PortalException
-
renderCustomThumbnail
public void renderCustomThumbnail(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws IOException, javax.servlet.ServletException - Specified by:
renderCustomThumbnailin interfaceDLViewFileVersionDisplayContext- Throws:
IOExceptionjavax.servlet.ServletException
-
renderPreview
public void renderPreview(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws IOException, javax.servlet.ServletException - Specified by:
renderPreviewin interfaceDLViewFileVersionDisplayContext- Throws:
IOExceptionjavax.servlet.ServletException
-