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.FileVersion
Fields 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.DDMFormValues
getDDMFormValues
(long ddmStorageId) com.liferay.dynamic.data.mapping.storage.DDMFormValues
getDDMFormValues
(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure) List<com.liferay.dynamic.data.mapping.model.DDMStructure>
int
long
getDiscussionLabel
(Locale locale) boolean
boolean
boolean
boolean
boolean
boolean
isShared()
boolean
boolean
void
renderCustomThumbnail
(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) void
renderPreview
(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) Methods inherited from class com.liferay.portal.kernel.display.context.BaseDisplayContext
getUuid
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getActionDropdownItems
in interfaceDLViewFileVersionDisplayContext
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCssClassFileMimeType
- Specified by:
getCssClassFileMimeType
in 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:
getDDMFormValues
in 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:
getDDMFormValues
in 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:
getDDMStructures
in interfaceDLViewFileVersionDisplayContext
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDDMStructuresCount
public int getDDMStructuresCount() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getDDMStructuresCount
in interfaceDLViewFileVersionDisplayContext
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDiscussionClassName
- Specified by:
getDiscussionClassName
in interfaceDLViewFileVersionDisplayContext
-
getDiscussionClassPK
public long getDiscussionClassPK()- Specified by:
getDiscussionClassPK
in interfaceDLViewFileVersionDisplayContext
-
getDiscussionLabel
- Specified by:
getDiscussionLabel
in interfaceDLViewFileVersionDisplayContext
-
getIconFileMimeType
- Specified by:
getIconFileMimeType
in interfaceDLViewFileVersionDisplayContext
-
hasApprovedVersion
public boolean hasApprovedVersion()- Specified by:
hasApprovedVersion
in interfaceDLViewFileVersionDisplayContext
-
hasCustomThumbnail
public boolean hasCustomThumbnail()- Specified by:
hasCustomThumbnail
in interfaceDLViewFileVersionDisplayContext
-
hasPreview
public boolean hasPreview()- Specified by:
hasPreview
in interfaceDLViewFileVersionDisplayContext
-
isActionsVisible
public boolean isActionsVisible()- Specified by:
isActionsVisible
in interfaceDLViewFileVersionDisplayContext
-
isDownloadLinkVisible
public boolean isDownloadLinkVisible() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
isDownloadLinkVisible
in interfaceDLViewFileVersionDisplayContext
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
isSharingLinkVisible
public boolean isSharingLinkVisible() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
isSharingLinkVisible
in interfaceDLViewFileVersionDisplayContext
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
isVersionInfoVisible
public boolean isVersionInfoVisible() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
isVersionInfoVisible
in 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:
renderCustomThumbnail
in interfaceDLViewFileVersionDisplayContext
- Throws:
IOException
javax.servlet.ServletException
-
renderPreview
public void renderPreview(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws IOException, javax.servlet.ServletException - Specified by:
renderPreview
in interfaceDLViewFileVersionDisplayContext
- Throws:
IOException
javax.servlet.ServletException
-