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 |
getDLFileEntryControlPanelLink(javax.portlet.PortletRequest portletRequest,
long fileEntryId) |
static String |
getDLFolderControlPanelLink(javax.portlet.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(javax.portlet.RenderRequest request,
String emailFromAddress,
String emailFromName) |
static Map<String,String> |
getEmailFromDefinitionTerms(javax.portlet.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)
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
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,
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)
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(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()
public static String getDLFileEntryControlPanelLink(javax.portlet.PortletRequest portletRequest, long fileEntryId) throws PortalException
PortalException
public static String getDLFolderControlPanelLink(javax.portlet.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(javax.portlet.RenderRequest request, String emailFromAddress, String emailFromName)
public static Map<String,String> getEmailFromDefinitionTerms(javax.portlet.RenderRequest request, String emailFromAddress, String emailFromName)
public static String getFileEntryImage(FileEntry fileEntry, ThemeDisplay themeDisplay)
@Deprecated 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, 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)
@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(String version)
public static void startWorkflowInstance(long userId, DLFileVersion dlFileVersion, String syncEventType, ServiceContext serviceContext) throws PortalException
PortalException
public void setDL(DL dl)