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) |
static String |
getDLFolderControlPanelLink(PortletRequest portletRequest,
long folderId) |
static String |
getDownloadURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString) |
static String |
getDownloadURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString,
boolean appendVersion,
boolean absoluteURL) |
static Map<String,String> |
getEmailDefinitionTerms(RenderRequest request,
String emailFromAddress,
String emailFromName) |
static Map<String,String> |
getEmailFromDefinitionTerms(RenderRequest request,
String emailFromAddress,
String emailFromName) |
static List<FileEntry> |
getFileEntries(Hits hits) |
static String |
getFileEntryImage(FileEntry fileEntry,
ThemeDisplay themeDisplay) |
static Set<Long> |
getFileEntryTypeSubscriptionClassPKs(long userId) |
static String |
getFileIcon(String extension) |
static String |
getFileIconCssClass(String extension) |
static String |
getGenericName(String extension) |
static String |
getImagePreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay) |
static String |
getImagePreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString,
boolean appendVersion,
boolean absoluteURL) |
static String |
getImagePreviewURL(FileEntry fileEntry,
ThemeDisplay themeDisplay) |
static String |
getPreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString) |
static String |
getPreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString,
boolean appendVersion,
boolean absoluteURL) |
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,
DLFileShortcut dlFileShortcut,
ThemeDisplay themeDisplay)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getThumbnailSrc(FileEntry, ThemeDisplay) |
static String |
getThumbnailSrc(FileEntry fileEntry,
FileVersion fileVersion,
DLFileShortcut dlFileShortcut,
ThemeDisplay themeDisplay)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getThumbnailSrc(FileEntry, FileVersion, ThemeDisplay) |
static String |
getThumbnailSrc(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay) |
static String |
getThumbnailSrc(FileEntry fileEntry,
ThemeDisplay 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) |
static String |
getWebDavURL(ThemeDisplay themeDisplay,
Folder folder,
FileEntry fileEntry,
boolean manualCheckInRequired) |
static String |
getWebDavURL(ThemeDisplay themeDisplay,
Folder folder,
FileEntry fileEntry,
boolean manualCheckInRequired,
boolean officeExtensionRequired) |
static boolean |
hasWorkflowDefinitionLink(long companyId,
long groupId,
long folderId,
long fileEntryTypeId) |
static boolean |
isAutoGeneratedDLFileEntryTypeDDMStructureKey(String ddmStructureKey) |
static boolean |
isOfficeExtension(String extension) |
static boolean |
isSubscribedToFileEntryType(long companyId,
long groupId,
long userId,
long fileEntryTypeId) |
static boolean |
isSubscribedToFolder(long companyId,
long groupId,
long userId,
long folderId) |
static boolean |
isSubscribedToFolder(long companyId,
long groupId,
long userId,
long folderId,
boolean recursive) |
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()
public static String getDLFileEntryControlPanelLink(PortletRequest portletRequest, long fileEntryId) throws PortalException
PortalException
public static String getDLFolderControlPanelLink(PortletRequest portletRequest, long folderId) throws PortalException
PortalException
public static String getDownloadURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString)
public static String getDownloadURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString, boolean appendVersion, boolean absoluteURL)
public static Map<String,String> getEmailDefinitionTerms(RenderRequest request, String emailFromAddress, String emailFromName)
public static Map<String,String> getEmailFromDefinitionTerms(RenderRequest request, String emailFromAddress, String emailFromName)
public static String getFileEntryImage(FileEntry fileEntry, ThemeDisplay themeDisplay)
public static Set<Long> getFileEntryTypeSubscriptionClassPKs(long userId)
public static String getFileIcon(String extension)
public static String getFileIconCssClass(String extension)
public static String getGenericName(String extension)
public static String getImagePreviewURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay) throws Exception
Exception
public static String getImagePreviewURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString, boolean appendVersion, boolean absoluteURL) throws PortalException
PortalException
public static String getImagePreviewURL(FileEntry fileEntry, ThemeDisplay themeDisplay) throws Exception
Exception
public static String getPreviewURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString)
public static String getPreviewURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString, boolean appendVersion, boolean absoluteURL)
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, DLFileShortcut dlFileShortcut, ThemeDisplay themeDisplay) throws Exception
getThumbnailSrc(FileEntry, ThemeDisplay)
Exception
@Deprecated public static String getThumbnailSrc(FileEntry fileEntry, FileVersion fileVersion, DLFileShortcut dlFileShortcut, ThemeDisplay themeDisplay) throws Exception
getThumbnailSrc(FileEntry, FileVersion, ThemeDisplay)
Exception
public static String getThumbnailSrc(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay) throws Exception
Exception
public static String getThumbnailSrc(FileEntry fileEntry, ThemeDisplay themeDisplay) throws Exception
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)
public static String getWebDavURL(ThemeDisplay themeDisplay, Folder folder, FileEntry fileEntry) throws PortalException
PortalException
public static String getWebDavURL(ThemeDisplay themeDisplay, Folder folder, FileEntry fileEntry, boolean manualCheckInRequired) throws PortalException
PortalException
public static String getWebDavURL(ThemeDisplay themeDisplay, Folder folder, FileEntry fileEntry, boolean manualCheckInRequired, boolean officeExtensionRequired) throws PortalException
PortalException
public static boolean hasWorkflowDefinitionLink(long companyId, long groupId, long folderId, long fileEntryTypeId) throws Exception
Exception
public static boolean isAutoGeneratedDLFileEntryTypeDDMStructureKey(String ddmStructureKey)
public static boolean isOfficeExtension(String extension)
public static boolean isSubscribedToFileEntryType(long companyId, long groupId, long userId, long fileEntryTypeId)
public static boolean isSubscribedToFolder(long companyId, long groupId, long userId, long folderId) throws PortalException
PortalException
public static boolean isSubscribedToFolder(long companyId, long groupId, long userId, long folderId, boolean recursive) throws PortalException
PortalException
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)