public class DLUtil
extends Object
Constructor and Description |
---|
DLUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
compareVersions(String version1,
String version2) |
static String |
getAbsolutePath(PortletRequest portletRequest,
long folderId) |
static Set<String> |
getAllMediaGalleryMimeTypes() |
static String |
getDDMStructureKey(DLFileEntryType dlFileEntryType) |
static String |
getDDMStructureKey(String fileEntryTypeUuid) |
static String |
getDeprecatedDDMStructureKey(DLFileEntryType dlFileEntryType) |
static String |
getDeprecatedDDMStructureKey(long fileEntryTypeId) |
static String |
getDividedPath(long id) |
static DL |
getDL() |
static String |
getDLFileEntryControlPanelLink(PortletRequest portletRequest,
long fileEntryId)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getFileEntryControlPanelLink(
PortletRequest, long) |
static String |
getDLFolderControlPanelLink(PortletRequest portletRequest,
long folderId)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getFolderControlPanelLink(
PortletRequest, long) |
static String |
getDownloadURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getDownloadURL(
FileEntry, FileVersion, ThemeDisplay, String) |
static String |
getDownloadURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString,
boolean appendVersion,
boolean absoluteURL)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getDownloadURL(
FileEntry, FileVersion, ThemeDisplay, String, boolean,
boolean) |
static Map<String,String> |
getEmailDefinitionTerms(RenderRequest renderRequest,
String emailFromAddress,
String emailFromName) |
static Map<String,String> |
getEmailFromDefinitionTerms(RenderRequest renderRequest,
String emailFromAddress,
String emailFromName) |
static List<FileEntry> |
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 |
getImagePreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getImagePreviewURL(
FileEntry, FileVersion, ThemeDisplay) |
static String |
getImagePreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString,
boolean appendVersion,
boolean absoluteURL)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getImagePreviewURL(
FileEntry, FileVersion, ThemeDisplay, String, boolean,
boolean) |
static String |
getImagePreviewURL(FileEntry fileEntry,
ThemeDisplay themeDisplay)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getImagePreviewURL(
FileEntry, FileVersion, ThemeDisplay) |
static String |
getPreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getPreviewURL(
FileEntry, FileVersion, ThemeDisplay, String) |
static String |
getPreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
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) |
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 |
getThumbnailSrc(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getThumbnailSrc(
FileEntry, FileVersion, ThemeDisplay) |
static String |
getThumbnailSrc(FileEntry fileEntry,
ThemeDisplay themeDisplay)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getThumbnailSrc(
FileEntry, ThemeDisplay) |
static String |
getThumbnailStyle() |
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) |
static String |
getWebDavURL(ThemeDisplay themeDisplay,
Folder folder,
FileEntry fileEntry)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getWebDavURL(
ThemeDisplay, Folder, FileEntry) |
static String |
getWebDavURL(ThemeDisplay themeDisplay,
Folder folder,
FileEntry fileEntry,
boolean manualCheckInRequired)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getWebDavURL(
ThemeDisplay, Folder, FileEntry, boolean) |
static String |
getWebDavURL(ThemeDisplay themeDisplay,
Folder folder,
FileEntry fileEntry,
boolean manualCheckInRequired,
boolean officeExtensionRequired)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getWebDavURL(
ThemeDisplay, Folder, FileEntry, boolean, boolean) |
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 |
setDL(DL dl) |
static void |
startWorkflowInstance(long userId,
DLFileVersion dlFileVersion,
String syncEventType,
ServiceContext serviceContext) |
public static int compareVersions(String version1, String version2)
public static String getAbsolutePath(PortletRequest portletRequest, long folderId) throws PortalException
PortalException
public static Set<String> getAllMediaGalleryMimeTypes()
public static String getDDMStructureKey(DLFileEntryType dlFileEntryType)
public static String getDDMStructureKey(String fileEntryTypeUuid)
public static String getDeprecatedDDMStructureKey(DLFileEntryType dlFileEntryType)
public static String getDeprecatedDDMStructureKey(long fileEntryTypeId)
public static String getDividedPath(long id)
public static DL getDL()
@Deprecated public static String getDLFileEntryControlPanelLink(PortletRequest portletRequest, long fileEntryId) throws PortalException
com.liferay.document.library.util.DLURLHelper#getFileEntryControlPanelLink(
PortletRequest, long)
PortalException
@Deprecated public static String getDLFolderControlPanelLink(PortletRequest portletRequest, long folderId) throws PortalException
com.liferay.document.library.util.DLURLHelper#getFolderControlPanelLink(
PortletRequest, long)
PortalException
@Deprecated public static String getDownloadURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString)
com.liferay.document.library.util.DLURLHelper#getDownloadURL(
FileEntry, FileVersion, ThemeDisplay, String)
@Deprecated public static String getDownloadURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString, boolean appendVersion, boolean absoluteURL)
com.liferay.document.library.util.DLURLHelper#getDownloadURL(
FileEntry, FileVersion, ThemeDisplay, String, boolean,
boolean)
public static Map<String,String> getEmailDefinitionTerms(RenderRequest renderRequest, String emailFromAddress, String emailFromName)
public static Map<String,String> getEmailFromDefinitionTerms(RenderRequest renderRequest, String emailFromAddress, String emailFromName)
public static String getFileEntryImage(FileEntry fileEntry, ThemeDisplay themeDisplay)
public static String getFileIcon(String extension)
public static String getFileIconCssClass(String extension)
public static String getGenericName(String extension)
@Deprecated public static String getImagePreviewURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay) throws Exception
com.liferay.document.library.util.DLURLHelper#getImagePreviewURL(
FileEntry, FileVersion, ThemeDisplay)
Exception
@Deprecated public static String getImagePreviewURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString, boolean appendVersion, boolean absoluteURL) throws PortalException
com.liferay.document.library.util.DLURLHelper#getImagePreviewURL(
FileEntry, FileVersion, ThemeDisplay, String, boolean,
boolean)
PortalException
@Deprecated public static String getImagePreviewURL(FileEntry fileEntry, ThemeDisplay themeDisplay) throws Exception
com.liferay.document.library.util.DLURLHelper#getImagePreviewURL(
FileEntry, FileVersion, ThemeDisplay)
Exception
@Deprecated public static String getPreviewURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString)
com.liferay.document.library.util.DLURLHelper#getPreviewURL(
FileEntry, FileVersion, ThemeDisplay, String)
@Deprecated public static String getPreviewURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString, boolean appendVersion, boolean absoluteURL)
com.liferay.document.library.util.DLURLHelper#getPreviewURL(
FileEntry, FileVersion, ThemeDisplay, String, boolean,
boolean)
public static <T> OrderByComparator<T> getRepositoryModelOrderByComparator(String orderByCol, String orderByType)
public static <T> OrderByComparator<T> getRepositoryModelOrderByComparator(String orderByCol, String orderByType, boolean orderByModel)
public static String getSanitizedFileName(String title, String extension)
public static String getTempFileId(long id, String version)
public static String getTempFileId(long id, String version, String languageId)
@Deprecated public static String getThumbnailSrc(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay) throws Exception
com.liferay.document.library.util.DLURLHelper#getThumbnailSrc(
FileEntry, FileVersion, ThemeDisplay)
Exception
@Deprecated public static String getThumbnailSrc(FileEntry fileEntry, ThemeDisplay themeDisplay) throws Exception
com.liferay.document.library.util.DLURLHelper#getThumbnailSrc(
FileEntry, ThemeDisplay)
Exception
public static String getThumbnailStyle()
public static String getThumbnailStyle(boolean max, int margin)
public static String getThumbnailStyle(boolean max, int margin, int height, int width)
public static String getTitleWithExtension(FileEntry fileEntry)
public static String getTitleWithExtension(String title, String extension)
public static String getUniqueFileName(long groupId, long folderId, String fileName)
@Deprecated public static String getWebDavURL(ThemeDisplay themeDisplay, Folder folder, FileEntry fileEntry) throws PortalException
com.liferay.document.library.util.DLURLHelper#getWebDavURL(
ThemeDisplay, Folder, FileEntry)
PortalException
@Deprecated public static String getWebDavURL(ThemeDisplay themeDisplay, Folder folder, FileEntry fileEntry, boolean manualCheckInRequired) throws PortalException
com.liferay.document.library.util.DLURLHelper#getWebDavURL(
ThemeDisplay, Folder, FileEntry, boolean)
PortalException
@Deprecated public static String getWebDavURL(ThemeDisplay themeDisplay, Folder folder, FileEntry fileEntry, boolean manualCheckInRequired, boolean officeExtensionRequired) throws PortalException
com.liferay.document.library.util.DLURLHelper#getWebDavURL(
ThemeDisplay, Folder, FileEntry, boolean, boolean)
PortalException
public static boolean hasWorkflowDefinitionLink(long companyId, long groupId, long folderId, long fileEntryTypeId)
public static boolean isAutoGeneratedDLFileEntryTypeDDMStructureKey(String ddmStructureKey)
public static boolean isOfficeExtension(String extension)
public static boolean isValidVersion(String version)
public static void startWorkflowInstance(long userId, DLFileVersion dlFileVersion, String syncEventType, ServiceContext serviceContext) throws PortalException
PortalException
public void setDL(DL dl)