Class BaseDLEditFileEntryDisplayContext

java.lang.Object
com.liferay.portal.kernel.display.context.BaseDisplayContext<T>
com.liferay.document.library.display.context.BaseDLDisplayContext<DLEditFileEntryDisplayContext>
com.liferay.document.library.display.context.BaseDLEditFileEntryDisplayContext
All Implemented Interfaces:
DLDisplayContext, DLEditFileEntryDisplayContext, com.liferay.portal.kernel.display.context.DisplayContext

public class BaseDLEditFileEntryDisplayContext extends BaseDLDisplayContext<DLEditFileEntryDisplayContext> implements DLEditFileEntryDisplayContext
  • Field Details

    • dlFileEntryType

      protected com.liferay.document.library.kernel.model.DLFileEntryType dlFileEntryType
    • fileEntry

      protected com.liferay.portal.kernel.repository.model.FileEntry fileEntry
  • Constructor Details

    • BaseDLEditFileEntryDisplayContext

      public BaseDLEditFileEntryDisplayContext(UUID uuid, DLEditFileEntryDisplayContext parentDLEditFileEntryDisplayContext, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, com.liferay.document.library.kernel.model.DLFileEntryType dlFileEntryType)
    • BaseDLEditFileEntryDisplayContext

      public BaseDLEditFileEntryDisplayContext(UUID uuid, DLEditFileEntryDisplayContext parentDLEditFileEntryDisplayContext, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
  • Method Details

    • getDDMFormValues

      public com.liferay.dynamic.data.mapping.storage.DDMFormValues getDDMFormValues(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure, long fileVersionId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getDDMFormValues in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getDDMFormValues

      public com.liferay.dynamic.data.mapping.storage.DDMFormValues getDDMFormValues(long classPK) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getDDMFormValues in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getDLFileEntryTypeLanguageId

      public String getDLFileEntryTypeLanguageId(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure, Locale locale)
      Specified by:
      getDLFileEntryTypeLanguageId in interface DLEditFileEntryDisplayContext
    • getDLFilePicker

      public DLFilePicker getDLFilePicker(String onFilePickCallback) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getDLFilePicker in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFriendlyURLBase

      public String getFriendlyURLBase() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getFriendlyURLBase in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMaximumUploadRequestSize

      public long getMaximumUploadRequestSize() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getMaximumUploadRequestSize in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMaximumUploadSize

      public long getMaximumUploadSize() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getMaximumUploadSize in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPublishButtonLabel

      public String getPublishButtonLabel() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPublishButtonLabel in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getSaveButtonLabel

      public String getSaveButtonLabel() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getSaveButtonLabel in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isCancelCheckoutDocumentButtonDisabled

      public boolean isCancelCheckoutDocumentButtonDisabled() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isCancelCheckoutDocumentButtonDisabled in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isCancelCheckoutDocumentButtonVisible

      public boolean isCancelCheckoutDocumentButtonVisible() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isCancelCheckoutDocumentButtonVisible in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isCheckinButtonDisabled

      public boolean isCheckinButtonDisabled() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isCheckinButtonDisabled in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isCheckinButtonVisible

      public boolean isCheckinButtonVisible() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isCheckinButtonVisible in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isCheckoutDocumentButtonDisabled

      public boolean isCheckoutDocumentButtonDisabled() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isCheckoutDocumentButtonDisabled in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isCheckoutDocumentButtonVisible

      public boolean isCheckoutDocumentButtonVisible() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isCheckoutDocumentButtonVisible in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isDDMStructureVisible

      public boolean isDDMStructureVisible(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isDDMStructureVisible in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isFolderSelectionVisible

      public boolean isFolderSelectionVisible() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isFolderSelectionVisible in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isFriendlyURLWithExtensionEnabled

      public boolean isFriendlyURLWithExtensionEnabled() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isFriendlyURLWithExtensionEnabled in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isPermissionsVisible

      public boolean isPermissionsVisible() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isPermissionsVisible in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isPublishButtonDisabled

      public boolean isPublishButtonDisabled() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isPublishButtonDisabled in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isPublishButtonVisible

      public boolean isPublishButtonVisible() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isPublishButtonVisible in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isSaveButtonDisabled

      public boolean isSaveButtonDisabled() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isSaveButtonDisabled in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isSaveButtonVisible

      public boolean isSaveButtonVisible() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isSaveButtonVisible in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isVersionInfoVisible

      public boolean isVersionInfoVisible() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isVersionInfoVisible in interface DLEditFileEntryDisplayContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException