Class DLUtil
Object
com.liferay.document.library.kernel.util.DLUtil
- Author:
- Brian Wing Shun Chan, Julio Camarero
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
compareVersions
(String version1, String version2) static String
getAbsolutePath
(PortletRequest portletRequest, long rootFolderId, long folderId) static String
getDDMStructureKey
(DLFileEntryType dlFileEntryType) static String
getDDMStructureKey
(String fileEntryTypeUuid) static String
getDeprecatedDDMStructureKey
(long fileEntryTypeId) static String
getDeprecatedDDMStructureKey
(DLFileEntryType dlFileEntryType) static String
getDividedPath
(long id) static DL
getDL()
getEmailDefinitionTerms
(RenderRequest renderRequest, String emailFromAddress, String emailFromName) getEmailFromDefinitionTerms
(RenderRequest renderRequest, String emailFromAddress, String emailFromName) getFileEntries
(Hits hits) static String
getFileEntryImage
(FileEntry fileEntry, ThemeDisplay themeDisplay) static String
getFileIcon
(String extension) static String
getFileIconCssClass
(String extension) static String
getGenericName
(String extension) static String
getPreviewURL
(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString) Deprecated.static String
getPreviewURL
(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString, boolean appendVersion, boolean absoluteURL) Deprecated.As of Mueller (7.2.x), replaced bycom.liferay.document.library.util.DLURLHelper#getPreviewURL(FileEntry, FileVersion, ThemeDisplay, String, boolean, boolean)
static <T> OrderByComparator<T>
getRepositoryModelOrderByComparator
(String orderByCol, String orderByType) static <T> OrderByComparator<T>
getRepositoryModelOrderByComparator
(String orderByCol, String orderByType, boolean orderByModel) static String
getSanitizedFileName
(String title, String extension) static String
getTempFileId
(long id, String version) static String
getTempFileId
(long id, String version, String languageId) static String
static String
getThumbnailStyle
(boolean max, int margin) static String
getThumbnailStyle
(boolean max, int margin, int height, int width) static String
getTitleWithExtension
(FileEntry fileEntry) static String
getTitleWithExtension
(String title, String extension) static String
getUniqueFileName
(long groupId, long folderId, String fileName, boolean ignoreDuplicateTitle) static String
getUniqueTitle
(long groupId, long folderId, String title) static boolean
hasWorkflowDefinitionLink
(long companyId, long groupId, long folderId, long fileEntryTypeId) static boolean
isAutoGeneratedDLFileEntryTypeDDMStructureKey
(String ddmStructureKey) static boolean
isOfficeExtension
(String extension) static boolean
isValidVersion
(String version) void
static void
startWorkflowInstance
(long userId, DLFileVersion dlFileVersion, String syncEventType, ServiceContext serviceContext)
-
Constructor Details
-
DLUtil
public DLUtil()
-
-
Method Details
-
compareVersions
-
getAbsolutePath
public static String getAbsolutePath(PortletRequest portletRequest, long rootFolderId, long folderId) throws PortalException - Throws:
PortalException
-
getAllMediaGalleryMimeTypes
-
getDDMStructureKey
-
getDDMStructureKey
-
getDeprecatedDDMStructureKey
-
getDeprecatedDDMStructureKey
-
getDividedPath
-
getDL
-
getEmailDefinitionTerms
-
getEmailFromDefinitionTerms
-
getFileEntries
-
getFileEntryImage
-
getFileIcon
-
getFileIconCssClass
-
getGenericName
-
getPreviewURL
@Deprecated public static String getPreviewURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString) Deprecated.As of Mueller (7.2.x), replaced bycom.liferay.document.library.util.DLURLHelper#getPreviewURL(FileEntry, FileVersion, ThemeDisplay, String)
-
getPreviewURL
@Deprecated public static String getPreviewURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString, boolean appendVersion, boolean absoluteURL) Deprecated.As of Mueller (7.2.x), replaced bycom.liferay.document.library.util.DLURLHelper#getPreviewURL(FileEntry, FileVersion, ThemeDisplay, String, boolean, boolean)
-
getRepositoryModelOrderByComparator
public static <T> OrderByComparator<T> getRepositoryModelOrderByComparator(String orderByCol, String orderByType) -
getRepositoryModelOrderByComparator
public static <T> OrderByComparator<T> getRepositoryModelOrderByComparator(String orderByCol, String orderByType, boolean orderByModel) -
getSanitizedFileName
-
getTempFileId
-
getTempFileId
-
getThumbnailStyle
-
getThumbnailStyle
-
getThumbnailStyle
-
getTitleWithExtension
-
getTitleWithExtension
-
getUniqueFileName
-
getUniqueTitle
-
hasWorkflowDefinitionLink
public static boolean hasWorkflowDefinitionLink(long companyId, long groupId, long folderId, long fileEntryTypeId) -
isAutoGeneratedDLFileEntryTypeDDMStructureKey
-
isOfficeExtension
-
isValidVersion
-
startWorkflowInstance
public static void startWorkflowInstance(long userId, DLFileVersion dlFileVersion, String syncEventType, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
setDL
-
com.liferay.document.library.util.DLURLHelper#getPreviewURL(FileEntry, FileVersion, ThemeDisplay, String)