public class DLImpl extends Object implements com.liferay.document.library.kernel.util.DL
| Constructor and Description |
|---|
DLImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareVersions(String version1,
String version2) |
void |
destroy() |
String |
getAbsolutePath(PortletRequest portletRequest,
long folderId) |
Set<String> |
getAllMediaGalleryMimeTypes() |
String |
getDDMStructureKey(com.liferay.document.library.kernel.model.DLFileEntryType dlFileEntryType) |
String |
getDDMStructureKey(String fileEntryTypeUuid) |
String |
getDeprecatedDDMStructureKey(com.liferay.document.library.kernel.model.DLFileEntryType dlFileEntryType) |
String |
getDeprecatedDDMStructureKey(long fileEntryTypeId) |
String |
getDividedPath(long id) |
String |
getDLFileEntryControlPanelLink(PortletRequest portletRequest,
long fileEntryId) |
String |
getDLFolderControlPanelLink(PortletRequest portletRequest,
long folderId) |
String |
getDownloadURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
String queryString) |
String |
getDownloadURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
String queryString,
boolean appendVersion,
boolean absoluteURL) |
Map<String,String> |
getEmailDefinitionTerms(PortletRequest portletRequest,
String emailFromAddress,
String emailFromName) |
Map<String,String> |
getEmailFromDefinitionTerms(PortletRequest portletRequest,
String emailFromAddress,
String emailFromName) |
protected String |
getEntryURL(com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
List<com.liferay.portal.kernel.repository.model.FileEntry> |
getFileEntries(com.liferay.portal.kernel.search.Hits hits) |
String |
getFileEntryImage(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
Set<Long> |
getFileEntryTypeSubscriptionClassPKs(long userId) |
String |
getFileIcon(String extension) |
String |
getFileIconCssClass(String extension) |
String |
getGenericName(String extension) |
String |
getImagePreviewURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
String |
getImagePreviewURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
protected String |
getImageSrc(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
String queryString) |
String |
getPreviewURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
String queryString) |
String |
getPreviewURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
String queryString,
boolean appendVersion,
boolean absoluteURL) |
<T> com.liferay.portal.kernel.util.OrderByComparator<T> |
getRepositoryModelOrderByComparator(String orderByCol,
String orderByType) |
<T> com.liferay.portal.kernel.util.OrderByComparator<T> |
getRepositoryModelOrderByComparator(String orderByCol,
String orderByType,
boolean orderByModel) |
String |
getSanitizedFileName(String title,
String extension) |
String |
getTempFileId(long id,
String version) |
String |
getTempFileId(long id,
String version,
String languageId) |
String |
getThumbnailSrc(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.document.library.kernel.model.DLFileShortcut dlFileShortcut,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Deprecated.
As of 7.0.0, replaced by
getThumbnailSrc(FileEntry,
ThemeDisplay) |
String |
getThumbnailSrc(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
com.liferay.document.library.kernel.model.DLFileShortcut dlFileShortcut,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Deprecated.
As of 7.0.0, replaced by
getThumbnailSrc(FileEntry,
FileVersion, ThemeDisplay) |
String |
getThumbnailSrc(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
String |
getThumbnailSrc(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
String |
getThumbnailStyle() |
String |
getThumbnailStyle(boolean max,
int margin) |
String |
getThumbnailStyle(boolean max,
int margin,
int height,
int width) |
String |
getTitleWithExtension(com.liferay.portal.kernel.repository.model.FileEntry fileEntry) |
String |
getTitleWithExtension(String title,
String extension) |
String |
getUniqueFileName(long groupId,
long folderId,
String fileName) |
String |
getWebDavURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.repository.model.Folder folder,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry) |
String |
getWebDavURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.repository.model.Folder folder,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
boolean manualCheckInRequired) |
String |
getWebDavURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.repository.model.Folder folder,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
boolean manualCheckInRequired,
boolean openDocumentUrl) |
boolean |
hasWorkflowDefinitionLink(long companyId,
long groupId,
long folderId,
long fileEntryTypeId) |
boolean |
isAutoGeneratedDLFileEntryTypeDDMStructureKey(String ddmStructureKey) |
boolean |
isOfficeExtension(String extension) |
boolean |
isSubscribedToFileEntryType(long companyId,
long groupId,
long userId,
long fileEntryTypeId) |
boolean |
isSubscribedToFolder(long companyId,
long groupId,
long userId,
long folderId) |
boolean |
isSubscribedToFolder(long companyId,
long groupId,
long userId,
long folderId,
boolean recursive) |
boolean |
isValidVersion(String version) |
void |
startWorkflowInstance(long userId,
com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion,
String syncEventType,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
public int compareVersions(String version1, String version2)
compareVersions in interface com.liferay.document.library.kernel.util.DLpublic void destroy()
public String getAbsolutePath(PortletRequest portletRequest, long folderId) throws com.liferay.portal.kernel.exception.PortalException
getAbsolutePath in interface com.liferay.document.library.kernel.util.DLcom.liferay.portal.kernel.exception.PortalExceptionpublic Set<String> getAllMediaGalleryMimeTypes()
getAllMediaGalleryMimeTypes in interface com.liferay.document.library.kernel.util.DLpublic String getDDMStructureKey(com.liferay.document.library.kernel.model.DLFileEntryType dlFileEntryType)
getDDMStructureKey in interface com.liferay.document.library.kernel.util.DLpublic String getDDMStructureKey(String fileEntryTypeUuid)
getDDMStructureKey in interface com.liferay.document.library.kernel.util.DLpublic String getDeprecatedDDMStructureKey(com.liferay.document.library.kernel.model.DLFileEntryType dlFileEntryType)
getDeprecatedDDMStructureKey in interface com.liferay.document.library.kernel.util.DLpublic String getDeprecatedDDMStructureKey(long fileEntryTypeId)
getDeprecatedDDMStructureKey in interface com.liferay.document.library.kernel.util.DLpublic String getDividedPath(long id)
getDividedPath in interface com.liferay.document.library.kernel.util.DLpublic String getDLFileEntryControlPanelLink(PortletRequest portletRequest, long fileEntryId)
getDLFileEntryControlPanelLink in interface com.liferay.document.library.kernel.util.DLpublic String getDLFolderControlPanelLink(PortletRequest portletRequest, long folderId)
getDLFolderControlPanelLink in interface com.liferay.document.library.kernel.util.DLpublic String getDownloadURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, String queryString)
getDownloadURL in interface com.liferay.document.library.kernel.util.DLpublic String getDownloadURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, String queryString, boolean appendVersion, boolean absoluteURL)
getDownloadURL in interface com.liferay.document.library.kernel.util.DLpublic Map<String,String> getEmailDefinitionTerms(PortletRequest portletRequest, String emailFromAddress, String emailFromName)
getEmailDefinitionTerms in interface com.liferay.document.library.kernel.util.DLpublic Map<String,String> getEmailFromDefinitionTerms(PortletRequest portletRequest, String emailFromAddress, String emailFromName)
getEmailFromDefinitionTerms in interface com.liferay.document.library.kernel.util.DLpublic List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(com.liferay.portal.kernel.search.Hits hits)
getFileEntries in interface com.liferay.document.library.kernel.util.DLpublic String getFileEntryImage(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
getFileEntryImage in interface com.liferay.document.library.kernel.util.DLpublic Set<Long> getFileEntryTypeSubscriptionClassPKs(long userId)
getFileEntryTypeSubscriptionClassPKs in interface com.liferay.document.library.kernel.util.DLpublic String getFileIcon(String extension)
getFileIcon in interface com.liferay.document.library.kernel.util.DLpublic String getFileIconCssClass(String extension)
getFileIconCssClass in interface com.liferay.document.library.kernel.util.DLpublic String getGenericName(String extension)
getGenericName in interface com.liferay.document.library.kernel.util.DLpublic String getImagePreviewURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws Exception
getImagePreviewURL in interface com.liferay.document.library.kernel.util.DLExceptionpublic String getImagePreviewURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws Exception
getImagePreviewURL in interface com.liferay.document.library.kernel.util.DLExceptionpublic String getPreviewURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, String queryString)
getPreviewURL in interface com.liferay.document.library.kernel.util.DLpublic String getPreviewURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, String queryString, boolean appendVersion, boolean absoluteURL)
getPreviewURL in interface com.liferay.document.library.kernel.util.DLpublic <T> com.liferay.portal.kernel.util.OrderByComparator<T> getRepositoryModelOrderByComparator(String orderByCol, String orderByType)
getRepositoryModelOrderByComparator in interface com.liferay.document.library.kernel.util.DLpublic <T> com.liferay.portal.kernel.util.OrderByComparator<T> getRepositoryModelOrderByComparator(String orderByCol, String orderByType, boolean orderByModel)
getRepositoryModelOrderByComparator in interface com.liferay.document.library.kernel.util.DLpublic String getSanitizedFileName(String title, String extension)
getSanitizedFileName in interface com.liferay.document.library.kernel.util.DLpublic String getTempFileId(long id, String version)
getTempFileId in interface com.liferay.document.library.kernel.util.DLpublic String getTempFileId(long id, String version, String languageId)
getTempFileId in interface com.liferay.document.library.kernel.util.DL@Deprecated public String getThumbnailSrc(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.document.library.kernel.model.DLFileShortcut dlFileShortcut, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws Exception
getThumbnailSrc(FileEntry,
ThemeDisplay)getThumbnailSrc in interface com.liferay.document.library.kernel.util.DLException@Deprecated public String getThumbnailSrc(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion, com.liferay.document.library.kernel.model.DLFileShortcut dlFileShortcut, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws Exception
getThumbnailSrc(FileEntry,
FileVersion, ThemeDisplay)getThumbnailSrc in interface com.liferay.document.library.kernel.util.DLExceptionpublic String getThumbnailSrc(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws Exception
getThumbnailSrc in interface com.liferay.document.library.kernel.util.DLExceptionpublic String getThumbnailSrc(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws Exception
getThumbnailSrc in interface com.liferay.document.library.kernel.util.DLExceptionpublic String getThumbnailStyle()
getThumbnailStyle in interface com.liferay.document.library.kernel.util.DLpublic String getThumbnailStyle(boolean max, int margin)
getThumbnailStyle in interface com.liferay.document.library.kernel.util.DLpublic String getThumbnailStyle(boolean max, int margin, int height, int width)
getThumbnailStyle in interface com.liferay.document.library.kernel.util.DLpublic String getTitleWithExtension(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
getTitleWithExtension in interface com.liferay.document.library.kernel.util.DLpublic String getTitleWithExtension(String title, String extension)
getTitleWithExtension in interface com.liferay.document.library.kernel.util.DLpublic String getUniqueFileName(long groupId, long folderId, String fileName)
getUniqueFileName in interface com.liferay.document.library.kernel.util.DLpublic String getWebDavURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.portal.kernel.repository.model.Folder folder, com.liferay.portal.kernel.repository.model.FileEntry fileEntry) throws com.liferay.portal.kernel.exception.PortalException
getWebDavURL in interface com.liferay.document.library.kernel.util.DLcom.liferay.portal.kernel.exception.PortalExceptionpublic String getWebDavURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.portal.kernel.repository.model.Folder folder, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, boolean manualCheckInRequired) throws com.liferay.portal.kernel.exception.PortalException
getWebDavURL in interface com.liferay.document.library.kernel.util.DLcom.liferay.portal.kernel.exception.PortalExceptionpublic String getWebDavURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.portal.kernel.repository.model.Folder folder, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, boolean manualCheckInRequired, boolean openDocumentUrl) throws com.liferay.portal.kernel.exception.PortalException
getWebDavURL in interface com.liferay.document.library.kernel.util.DLcom.liferay.portal.kernel.exception.PortalExceptionpublic boolean hasWorkflowDefinitionLink(long companyId,
long groupId,
long folderId,
long fileEntryTypeId)
throws Exception
hasWorkflowDefinitionLink in interface com.liferay.document.library.kernel.util.DLExceptionpublic boolean isAutoGeneratedDLFileEntryTypeDDMStructureKey(String ddmStructureKey)
isAutoGeneratedDLFileEntryTypeDDMStructureKey in interface com.liferay.document.library.kernel.util.DLpublic boolean isOfficeExtension(String extension)
isOfficeExtension in interface com.liferay.document.library.kernel.util.DLpublic boolean isSubscribedToFileEntryType(long companyId,
long groupId,
long userId,
long fileEntryTypeId)
isSubscribedToFileEntryType in interface com.liferay.document.library.kernel.util.DLpublic boolean isSubscribedToFolder(long companyId,
long groupId,
long userId,
long folderId)
throws com.liferay.portal.kernel.exception.PortalException
isSubscribedToFolder in interface com.liferay.document.library.kernel.util.DLcom.liferay.portal.kernel.exception.PortalExceptionpublic boolean isSubscribedToFolder(long companyId,
long groupId,
long userId,
long folderId,
boolean recursive)
throws com.liferay.portal.kernel.exception.PortalException
isSubscribedToFolder in interface com.liferay.document.library.kernel.util.DLcom.liferay.portal.kernel.exception.PortalExceptionpublic boolean isValidVersion(String version)
isValidVersion in interface com.liferay.document.library.kernel.util.DLpublic void startWorkflowInstance(long userId,
com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion,
String syncEventType,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
startWorkflowInstance in interface com.liferay.document.library.kernel.util.DLcom.liferay.portal.kernel.exception.PortalExceptionprotected String getEntryURL(com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException