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