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.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
public String getDLFileEntryControlPanelLink(PortletRequest portletRequest, long fileEntryId)
getDLFileEntryControlPanelLink
in interface com.liferay.document.library.kernel.util.DL
public String getDLFolderControlPanelLink(PortletRequest portletRequest, long folderId)
getDLFolderControlPanelLink
in interface com.liferay.document.library.kernel.util.DL
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)
getDownloadURL
in interface com.liferay.document.library.kernel.util.DL
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)
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 Set<Long> getFileEntryTypeSubscriptionClassPKs(long userId)
getFileEntryTypeSubscriptionClassPKs
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
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) throws Exception
getImagePreviewURL
in interface com.liferay.document.library.kernel.util.DL
Exception
public 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.DL
Exception
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)
getPreviewURL
in interface com.liferay.document.library.kernel.util.DL
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)
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.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.DL
Exception
@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.DL
Exception
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
getThumbnailSrc
in interface com.liferay.document.library.kernel.util.DL
Exception
public 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.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
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
getWebDavURL
in interface com.liferay.document.library.kernel.util.DL
com.liferay.portal.kernel.exception.PortalException
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
getWebDavURL
in interface com.liferay.document.library.kernel.util.DL
com.liferay.portal.kernel.exception.PortalException
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
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) throws Exception
hasWorkflowDefinitionLink
in interface com.liferay.document.library.kernel.util.DL
Exception
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 isSubscribedToFileEntryType(long companyId, long groupId, long userId, long fileEntryTypeId)
isSubscribedToFileEntryType
in interface com.liferay.document.library.kernel.util.DL
public 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.DL
com.liferay.portal.kernel.exception.PortalException
public 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.DL
com.liferay.portal.kernel.exception.PortalException
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) throws Exception
Exception