Object
com.liferay.portlet.documentlibrary.util.DLImpl
All Implemented Interfaces:
com.liferay.document.library.kernel.util.DL

public class DLImpl extends Object implements com.liferay.document.library.kernel.util.DL
Author:
Brian Wing Shun Chan, Julio Camarero
  • Constructor Details

    • DLImpl

      public DLImpl()
  • Method Details

    • compareVersions

      public int compareVersions(String version1, String version2)
      Specified by:
      compareVersions in interface com.liferay.document.library.kernel.util.DL
    • destroy

      public void destroy()
    • getAbsolutePath

      public String getAbsolutePath(PortletRequest portletRequest, long rootFolderId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getAbsolutePath in interface com.liferay.document.library.kernel.util.DL
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAllMediaGalleryMimeTypes

      public Set<String> getAllMediaGalleryMimeTypes()
      Specified by:
      getAllMediaGalleryMimeTypes in interface com.liferay.document.library.kernel.util.DL
    • getDDMStructureKey

      public String getDDMStructureKey(com.liferay.document.library.kernel.model.DLFileEntryType dlFileEntryType)
      Specified by:
      getDDMStructureKey in interface com.liferay.document.library.kernel.util.DL
    • getDDMStructureKey

      public String getDDMStructureKey(String fileEntryTypeUuid)
      Specified by:
      getDDMStructureKey in interface com.liferay.document.library.kernel.util.DL
    • getDeprecatedDDMStructureKey

      public String getDeprecatedDDMStructureKey(com.liferay.document.library.kernel.model.DLFileEntryType dlFileEntryType)
      Specified by:
      getDeprecatedDDMStructureKey in interface com.liferay.document.library.kernel.util.DL
    • getDeprecatedDDMStructureKey

      public String getDeprecatedDDMStructureKey(long fileEntryTypeId)
      Specified by:
      getDeprecatedDDMStructureKey in interface com.liferay.document.library.kernel.util.DL
    • getDividedPath

      public String getDividedPath(long id)
      Specified by:
      getDividedPath in interface com.liferay.document.library.kernel.util.DL
    • getEmailDefinitionTerms

      public Map<String,String> getEmailDefinitionTerms(PortletRequest portletRequest, String emailFromAddress, String emailFromName)
      Specified by:
      getEmailDefinitionTerms in interface com.liferay.document.library.kernel.util.DL
    • getEmailFromDefinitionTerms

      public Map<String,String> getEmailFromDefinitionTerms(PortletRequest portletRequest, String emailFromAddress, String emailFromName)
      Specified by:
      getEmailFromDefinitionTerms in interface com.liferay.document.library.kernel.util.DL
    • getFileEntries

      public List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(com.liferay.portal.kernel.search.Hits hits)
      Specified by:
      getFileEntries in interface com.liferay.document.library.kernel.util.DL
    • getFileEntryImage

      public String getFileEntryImage(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
      Specified by:
      getFileEntryImage in interface com.liferay.document.library.kernel.util.DL
    • getFileIcon

      public String getFileIcon(String extension)
      Specified by:
      getFileIcon in interface com.liferay.document.library.kernel.util.DL
    • getFileIconCssClass

      public String getFileIconCssClass(String extension)
      Specified by:
      getFileIconCssClass in interface com.liferay.document.library.kernel.util.DL
    • getGenericName

      public String getGenericName(String extension)
      Specified by:
      getGenericName in interface com.liferay.document.library.kernel.util.DL
    • getPreviewURL

      @Deprecated public String getPreviewURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, String queryString)
      Deprecated.
      As of Mueller (7.2.x), replaced by com.liferay.document.library.util.DLURLHelper#getPreviewURL(FileEntry, FileVersion, ThemeDisplay, String)
      Specified by:
      getPreviewURL in interface com.liferay.document.library.kernel.util.DL
    • getPreviewURL

      @Deprecated public String getPreviewURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, String queryString, boolean appendVersion, boolean absoluteURL)
      Deprecated.
      As of Mueller (7.2.x), replaced by com.liferay.document.library.util.DLURLHelper#getPreviewURL(FileEntry, FileVersion, ThemeDisplay, String, boolean, boolean)
      Specified by:
      getPreviewURL in interface com.liferay.document.library.kernel.util.DL
    • getRepositoryModelOrderByComparator

      public <T> com.liferay.portal.kernel.util.OrderByComparator<T> getRepositoryModelOrderByComparator(String orderByCol, String orderByType)
      Specified by:
      getRepositoryModelOrderByComparator in interface com.liferay.document.library.kernel.util.DL
    • getRepositoryModelOrderByComparator

      public <T> com.liferay.portal.kernel.util.OrderByComparator<T> getRepositoryModelOrderByComparator(String orderByCol, String orderByType, boolean orderByModel)
      Specified by:
      getRepositoryModelOrderByComparator in interface com.liferay.document.library.kernel.util.DL
    • getSanitizedFileName

      public String getSanitizedFileName(String title, String extension)
      Specified by:
      getSanitizedFileName in interface com.liferay.document.library.kernel.util.DL
    • getTempFileId

      public String getTempFileId(long id, String version)
      Specified by:
      getTempFileId in interface com.liferay.document.library.kernel.util.DL
    • getTempFileId

      public String getTempFileId(long id, String version, String languageId)
      Specified by:
      getTempFileId in interface com.liferay.document.library.kernel.util.DL
    • getThumbnailStyle

      public String getThumbnailStyle()
      Specified by:
      getThumbnailStyle in interface com.liferay.document.library.kernel.util.DL
    • getThumbnailStyle

      public String getThumbnailStyle(boolean max, int margin)
      Specified by:
      getThumbnailStyle in interface com.liferay.document.library.kernel.util.DL
    • getThumbnailStyle

      public String getThumbnailStyle(boolean max, int margin, int height, int width)
      Specified by:
      getThumbnailStyle in interface com.liferay.document.library.kernel.util.DL
    • getTitleWithExtension

      public String getTitleWithExtension(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
      Specified by:
      getTitleWithExtension in interface com.liferay.document.library.kernel.util.DL
    • getTitleWithExtension

      public String getTitleWithExtension(String title, String extension)
      Specified by:
      getTitleWithExtension in interface com.liferay.document.library.kernel.util.DL
    • getUniqueFileName

      public String getUniqueFileName(long groupId, long folderId, String fileName, boolean ignoreDuplicateTitle)
      Specified by:
      getUniqueFileName in interface com.liferay.document.library.kernel.util.DL
    • getUniqueTitle

      public String getUniqueTitle(long groupId, long folderId, String title)
      Specified by:
      getUniqueTitle in interface com.liferay.document.library.kernel.util.DL
    • hasWorkflowDefinitionLink

      public boolean hasWorkflowDefinitionLink(long companyId, long groupId, long folderId, long fileEntryTypeId)
      Specified by:
      hasWorkflowDefinitionLink in interface com.liferay.document.library.kernel.util.DL
    • isAutoGeneratedDLFileEntryTypeDDMStructureKey

      public boolean isAutoGeneratedDLFileEntryTypeDDMStructureKey(String ddmStructureKey)
      Specified by:
      isAutoGeneratedDLFileEntryTypeDDMStructureKey in interface com.liferay.document.library.kernel.util.DL
    • isOfficeExtension

      public boolean isOfficeExtension(String extension)
      Specified by:
      isOfficeExtension in interface com.liferay.document.library.kernel.util.DL
    • isValidVersion

      public boolean isValidVersion(String version)
      Specified by:
      isValidVersion in interface com.liferay.document.library.kernel.util.DL
    • startWorkflowInstance

      public void startWorkflowInstance(long userId, com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion, String syncEventType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      startWorkflowInstance in interface com.liferay.document.library.kernel.util.DL
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getEntryURL

      protected String getEntryURL(com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getImageSrc

      protected String getImageSrc(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, String queryString)
    • getImageSrc

      protected String getImageSrc(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, String queryString, boolean appendVersion, boolean absoluteURL)