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 intcompareVersions(String version1, String version2) static StringgetAbsolutePath(PortletRequest portletRequest, long rootFolderId, long folderId) static StringgetDDMStructureKey(DLFileEntryType dlFileEntryType) static StringgetDDMStructureKey(String fileEntryTypeUuid) static StringgetDeprecatedDDMStructureKey(long fileEntryTypeId) static StringgetDeprecatedDDMStructureKey(DLFileEntryType dlFileEntryType) static StringgetDividedPath(long id) static DLgetDL()getEmailDefinitionTerms(RenderRequest renderRequest, String emailFromAddress, String emailFromName) getEmailFromDefinitionTerms(RenderRequest renderRequest, String emailFromAddress, String emailFromName) getFileEntries(Hits hits) static StringgetFileEntryImage(FileEntry fileEntry, ThemeDisplay themeDisplay) static StringgetFileIcon(String extension) static StringgetFileIconCssClass(String extension) static StringgetGenericName(String extension) static StringgetPreviewURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString) Deprecated.static StringgetPreviewURL(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 StringgetSanitizedFileName(String title, String extension) static StringgetTempFileId(long id, String version) static StringgetTempFileId(long id, String version, String languageId) static Stringstatic StringgetThumbnailStyle(boolean max, int margin) static StringgetThumbnailStyle(boolean max, int margin, int height, int width) static StringgetTitleWithExtension(FileEntry fileEntry) static StringgetTitleWithExtension(String title, String extension) static StringgetUniqueFileName(long groupId, long folderId, String fileName, boolean ignoreDuplicateTitle) static StringgetUniqueTitle(long groupId, long folderId, String title) static booleanhasWorkflowDefinitionLink(long companyId, long groupId, long folderId, long fileEntryTypeId) static booleanisAutoGeneratedDLFileEntryTypeDDMStructureKey(String ddmStructureKey) static booleanisOfficeExtension(String extension) static booleanisValidVersion(String version) voidstatic voidstartWorkflowInstance(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)