public class BaseDLViewFileVersionDisplayContext extends BaseDLDisplayContext<DLViewFileVersionDisplayContext> implements DLViewFileVersionDisplayContext
| Modifier and Type | Field and Description |
|---|---|
protected FileVersion |
fileVersion |
parentDisplayContext, request, response| Constructor and Description |
|---|
BaseDLViewFileVersionDisplayContext(java.util.UUID uuid,
DLViewFileVersionDisplayContext parentDLDisplayContext,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
FileVersion fileVersion) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCssClassFileMimeType() |
DDMFormValues |
getDDMFormValues(DDMStructure ddmStructure) |
DDMFormValues |
getDDMFormValues(long ddmStorageId) |
java.util.List<DDMStructure> |
getDDMStructures() |
int |
getDDMStructuresCount() |
java.lang.String |
getDiscussionClassName() |
long |
getDiscussionClassPK() |
java.lang.String |
getDiscussionLabel(java.util.Locale locale) |
java.lang.String |
getIconFileMimeType() |
Menu |
getMenu() |
java.util.List<ToolbarItem> |
getToolbarItems() |
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) |
getUuidclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUuidprotected FileVersion fileVersion
public BaseDLViewFileVersionDisplayContext(java.util.UUID uuid,
DLViewFileVersionDisplayContext parentDLDisplayContext,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
FileVersion fileVersion)
public java.lang.String getCssClassFileMimeType()
getCssClassFileMimeType in interface DLViewFileVersionDisplayContextpublic DDMFormValues getDDMFormValues(DDMStructure ddmStructure) throws PortalException
getDDMFormValues in interface DLViewFileVersionDisplayContextPortalExceptionpublic DDMFormValues getDDMFormValues(long ddmStorageId) throws PortalException
getDDMFormValues in interface DLViewFileVersionDisplayContextPortalExceptionpublic java.util.List<DDMStructure> getDDMStructures() throws PortalException
getDDMStructures in interface DLViewFileVersionDisplayContextPortalExceptionpublic int getDDMStructuresCount()
throws PortalException
getDDMStructuresCount in interface DLViewFileVersionDisplayContextPortalExceptionpublic 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 Menu getMenu() throws PortalException
getMenu in interface DLViewFileVersionDisplayContextPortalExceptionpublic java.util.List<ToolbarItem> getToolbarItems() throws PortalException
getToolbarItems in interface DLViewFileVersionDisplayContextPortalExceptionpublic boolean hasCustomThumbnail()
hasCustomThumbnail in interface DLViewFileVersionDisplayContextpublic boolean hasPreview()
hasPreview in interface DLViewFileVersionDisplayContextpublic boolean isActionsVisible()
isActionsVisible in interface DLViewFileVersionDisplayContextpublic boolean isDownloadLinkVisible()
throws PortalException
isDownloadLinkVisible in interface DLViewFileVersionDisplayContextPortalExceptionpublic boolean isShared()
throws PortalException
isShared in interface DLViewFileVersionDisplayContextPortalExceptionpublic boolean isSharingLinkVisible()
throws PortalException
isSharingLinkVisible in interface DLViewFileVersionDisplayContextPortalExceptionpublic boolean isVersionInfoVisible()
throws PortalException
isVersionInfoVisible in interface DLViewFileVersionDisplayContextPortalExceptionpublic 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