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(javax.portlet.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 |
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(javax.portlet.RenderRequest renderRequest,
String emailFromAddress,
String emailFromName) |
static Map<String,String> |
getEmailFromDefinitionTerms(javax.portlet.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 |
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,
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 |
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(javax.portlet.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 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(javax.portlet.RenderRequest renderRequest, String emailFromAddress, String emailFromName)
public static Map<String,String> getEmailFromDefinitionTerms(javax.portlet.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)
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, boolean ignoreDuplicateTitle)
public static String getUniqueTitle(long groupId, long folderId, String title)
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)