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)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getFileEntryControlPanelLink(
PortletRequest, long) |
String |
getDLFolderControlPanelLink(PortletRequest portletRequest,
long folderId)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getFolderControlPanelLink(
PortletRequest, long) |
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)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getDownloadURL(
FileEntry, FileVersion, ThemeDisplay, String) |
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)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getDownloadURL(
FileEntry, FileVersion, ThemeDisplay, String, boolean,
boolean) |
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) |
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)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getImagePreviewURL(
FileEntry, FileVersion, ThemeDisplay) |
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 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) |
String |
getImagePreviewURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getImagePreviewURL(
FileEntry, FileVersion, 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) |
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,
boolean appendVersion,
boolean absoluteURL) |
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)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getPreviewURL(
FileEntry, FileVersion, ThemeDisplay, String) |
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)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getPreviewURL(
FileEntry, FileVersion, ThemeDisplay, String, boolean,
boolean) |
<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.portal.kernel.repository.model.FileVersion fileVersion,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getThumbnailSrc(
FileEntry, FileVersion, ThemeDisplay) |
String |
getThumbnailSrc(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getThumbnailSrc(
FileEntry, 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)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getWebDavURL(
ThemeDisplay, Folder, 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)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getWebDavURL(
ThemeDisplay, Folder, FileEntry, boolean) |
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)
Deprecated.
As of Mueller (7.2.x), replaced by
com.liferay.document.library.util.DLURLHelper#getWebDavURL(
ThemeDisplay, Folder, FileEntry, boolean, boolean) |
boolean |
hasWorkflowDefinitionLink(long companyId,
long groupId,
long folderId,
long fileEntryTypeId) |
boolean |
isAutoGeneratedDLFileEntryTypeDDMStructureKey(String ddmStructureKey) |
boolean |
isOfficeExtension(String extension) |
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.DL
public 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.DL
com.liferay.portal.kernel.exception.PortalException
public Set<String> getAllMediaGalleryMimeTypes()
getAllMediaGalleryMimeTypes
in interface com.liferay.document.library.kernel.util.DL
public String getDDMStructureKey(com.liferay.document.library.kernel.model.DLFileEntryType dlFileEntryType)
getDDMStructureKey
in interface com.liferay.document.library.kernel.util.DL
public String getDDMStructureKey(String fileEntryTypeUuid)
getDDMStructureKey
in interface com.liferay.document.library.kernel.util.DL
public String getDeprecatedDDMStructureKey(com.liferay.document.library.kernel.model.DLFileEntryType dlFileEntryType)
getDeprecatedDDMStructureKey
in interface com.liferay.document.library.kernel.util.DL
public String getDeprecatedDDMStructureKey(long fileEntryTypeId)
getDeprecatedDDMStructureKey
in interface com.liferay.document.library.kernel.util.DL
public String getDividedPath(long id)
getDividedPath
in interface com.liferay.document.library.kernel.util.DL
@Deprecated public String getDLFileEntryControlPanelLink(PortletRequest portletRequest, long fileEntryId)
com.liferay.document.library.util.DLURLHelper#getFileEntryControlPanelLink(
PortletRequest, long)
getDLFileEntryControlPanelLink
in interface com.liferay.document.library.kernel.util.DL
@Deprecated public String getDLFolderControlPanelLink(PortletRequest portletRequest, long folderId)
com.liferay.document.library.util.DLURLHelper#getFolderControlPanelLink(
PortletRequest, long)
getDLFolderControlPanelLink
in interface com.liferay.document.library.kernel.util.DL
@Deprecated public 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)
com.liferay.document.library.util.DLURLHelper#getDownloadURL(
FileEntry, FileVersion, ThemeDisplay, String)
getDownloadURL
in interface com.liferay.document.library.kernel.util.DL
@Deprecated public 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)
com.liferay.document.library.util.DLURLHelper#getDownloadURL(
FileEntry, FileVersion, ThemeDisplay, String, boolean,
boolean)
getDownloadURL
in interface com.liferay.document.library.kernel.util.DL
public Map<String,String> getEmailDefinitionTerms(PortletRequest portletRequest, String emailFromAddress, String emailFromName)
getEmailDefinitionTerms
in interface com.liferay.document.library.kernel.util.DL
public Map<String,String> getEmailFromDefinitionTerms(PortletRequest portletRequest, String emailFromAddress, String emailFromName)
getEmailFromDefinitionTerms
in interface com.liferay.document.library.kernel.util.DL
public 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.DL
public 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.DL
public String getFileIcon(String extension)
getFileIcon
in interface com.liferay.document.library.kernel.util.DL
public String getFileIconCssClass(String extension)
getFileIconCssClass
in interface com.liferay.document.library.kernel.util.DL
public String getGenericName(String extension)
getGenericName
in interface com.liferay.document.library.kernel.util.DL
@Deprecated public 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)
com.liferay.document.library.util.DLURLHelper#getImagePreviewURL(
FileEntry, FileVersion, ThemeDisplay)
getImagePreviewURL
in interface com.liferay.document.library.kernel.util.DL
@Deprecated public 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 queryString, boolean appendVersion, boolean absoluteURL)
com.liferay.document.library.util.DLURLHelper#getImagePreviewURL(
FileEntry, FileVersion, ThemeDisplay, String, boolean,
boolean)
getImagePreviewURL
in interface com.liferay.document.library.kernel.util.DL
@Deprecated public String getImagePreviewURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws Exception
com.liferay.document.library.util.DLURLHelper#getImagePreviewURL(
FileEntry, FileVersion, ThemeDisplay)
getImagePreviewURL
in interface com.liferay.document.library.kernel.util.DL
Exception
@Deprecated public 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)
com.liferay.document.library.util.DLURLHelper#getPreviewURL(
FileEntry, FileVersion, ThemeDisplay, String)
getPreviewURL
in interface com.liferay.document.library.kernel.util.DL
@Deprecated public 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)
com.liferay.document.library.util.DLURLHelper#getPreviewURL(
FileEntry, FileVersion, ThemeDisplay, String, boolean,
boolean)
getPreviewURL
in interface com.liferay.document.library.kernel.util.DL
public <T> com.liferay.portal.kernel.util.OrderByComparator<T> getRepositoryModelOrderByComparator(String orderByCol, String orderByType)
getRepositoryModelOrderByComparator
in interface com.liferay.document.library.kernel.util.DL
public <T> com.liferay.portal.kernel.util.OrderByComparator<T> getRepositoryModelOrderByComparator(String orderByCol, String orderByType, boolean orderByModel)
getRepositoryModelOrderByComparator
in interface com.liferay.document.library.kernel.util.DL
public String getSanitizedFileName(String title, String extension)
getSanitizedFileName
in interface com.liferay.document.library.kernel.util.DL
public String getTempFileId(long id, String version)
getTempFileId
in interface com.liferay.document.library.kernel.util.DL
public 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.portal.kernel.repository.model.FileVersion fileVersion, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws Exception
com.liferay.document.library.util.DLURLHelper#getThumbnailSrc(
FileEntry, FileVersion, ThemeDisplay)
getThumbnailSrc
in interface com.liferay.document.library.kernel.util.DL
Exception
@Deprecated public String getThumbnailSrc(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws Exception
com.liferay.document.library.util.DLURLHelper#getThumbnailSrc(
FileEntry, ThemeDisplay)
getThumbnailSrc
in interface com.liferay.document.library.kernel.util.DL
Exception
public String getThumbnailStyle()
getThumbnailStyle
in interface com.liferay.document.library.kernel.util.DL
public String getThumbnailStyle(boolean max, int margin)
getThumbnailStyle
in interface com.liferay.document.library.kernel.util.DL
public String getThumbnailStyle(boolean max, int margin, int height, int width)
getThumbnailStyle
in interface com.liferay.document.library.kernel.util.DL
public String getTitleWithExtension(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
getTitleWithExtension
in interface com.liferay.document.library.kernel.util.DL
public String getTitleWithExtension(String title, String extension)
getTitleWithExtension
in interface com.liferay.document.library.kernel.util.DL
public String getUniqueFileName(long groupId, long folderId, String fileName)
getUniqueFileName
in interface com.liferay.document.library.kernel.util.DL
@Deprecated public 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
com.liferay.document.library.util.DLURLHelper#getWebDavURL(
ThemeDisplay, Folder, FileEntry)
getWebDavURL
in interface com.liferay.document.library.kernel.util.DL
com.liferay.portal.kernel.exception.PortalException
@Deprecated public 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
com.liferay.document.library.util.DLURLHelper#getWebDavURL(
ThemeDisplay, Folder, FileEntry, boolean)
getWebDavURL
in interface com.liferay.document.library.kernel.util.DL
com.liferay.portal.kernel.exception.PortalException
@Deprecated public 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
com.liferay.document.library.util.DLURLHelper#getWebDavURL(
ThemeDisplay, Folder, FileEntry, boolean, boolean)
getWebDavURL
in interface com.liferay.document.library.kernel.util.DL
com.liferay.portal.kernel.exception.PortalException
public boolean hasWorkflowDefinitionLink(long companyId, long groupId, long folderId, long fileEntryTypeId)
hasWorkflowDefinitionLink
in interface com.liferay.document.library.kernel.util.DL
public boolean isAutoGeneratedDLFileEntryTypeDDMStructureKey(String ddmStructureKey)
isAutoGeneratedDLFileEntryTypeDDMStructureKey
in interface com.liferay.document.library.kernel.util.DL
public boolean isOfficeExtension(String extension)
isOfficeExtension
in interface com.liferay.document.library.kernel.util.DL
public boolean isValidVersion(String version)
isValidVersion
in interface com.liferay.document.library.kernel.util.DL
public 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.DL
com.liferay.portal.kernel.exception.PortalException
protected 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
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)
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, boolean appendVersion, boolean absoluteURL)