Class DLImpl
Object
com.liferay.portlet.documentlibrary.util.DLImpl
- All Implemented Interfaces:
com.liferay.document.library.kernel.util.DL
- Author:
- Brian Wing Shun Chan, Julio Camarero
-
Field Summary
Fields inherited from interface com.liferay.document.library.kernel.util.DL
MANUAL_CHECK_IN_REQUIRED, MANUAL_CHECK_IN_REQUIRED_PATH, OFFICE_EXTENSION, OFFICE_EXTENSION_PATH, WEBDAV_CHECK_IN_MODE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compareVersions
(String version1, String version2) void
destroy()
getAbsolutePath
(PortletRequest portletRequest, long rootFolderId, long folderId) getDDMStructureKey
(com.liferay.document.library.kernel.model.DLFileEntryType dlFileEntryType) getDDMStructureKey
(String fileEntryTypeUuid) getDeprecatedDDMStructureKey
(long fileEntryTypeId) getDeprecatedDDMStructureKey
(com.liferay.document.library.kernel.model.DLFileEntryType dlFileEntryType) getDividedPath
(long id) getEmailDefinitionTerms
(PortletRequest portletRequest, String emailFromAddress, String emailFromName) 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) getFileEntryImage
(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) getFileIcon
(String extension) getFileIconCssClass
(String extension) getGenericName
(String extension) 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) 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.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 bycom.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) getSanitizedFileName
(String title, String extension) getTempFileId
(long id, String version) getTempFileId
(long id, String version, String languageId) getThumbnailStyle
(boolean max, int margin) getThumbnailStyle
(boolean max, int margin, int height, int width) getTitleWithExtension
(com.liferay.portal.kernel.repository.model.FileEntry fileEntry) getTitleWithExtension
(String title, String extension) getUniqueFileName
(long groupId, long folderId, String fileName, boolean ignoreDuplicateTitle) getUniqueTitle
(long groupId, long folderId, String title) 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)
-
Constructor Details
-
DLImpl
public DLImpl()
-
-
Method Details
-
compareVersions
- Specified by:
compareVersions
in interfacecom.liferay.document.library.kernel.util.DL
-
destroy
public void destroy() -
getAbsolutePath
public String getAbsolutePath(PortletRequest portletRequest, long rootFolderId, long folderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getAbsolutePath
in interfacecom.liferay.document.library.kernel.util.DL
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAllMediaGalleryMimeTypes
- Specified by:
getAllMediaGalleryMimeTypes
in interfacecom.liferay.document.library.kernel.util.DL
-
getDDMStructureKey
public String getDDMStructureKey(com.liferay.document.library.kernel.model.DLFileEntryType dlFileEntryType) - Specified by:
getDDMStructureKey
in interfacecom.liferay.document.library.kernel.util.DL
-
getDDMStructureKey
- Specified by:
getDDMStructureKey
in interfacecom.liferay.document.library.kernel.util.DL
-
getDeprecatedDDMStructureKey
public String getDeprecatedDDMStructureKey(com.liferay.document.library.kernel.model.DLFileEntryType dlFileEntryType) - Specified by:
getDeprecatedDDMStructureKey
in interfacecom.liferay.document.library.kernel.util.DL
-
getDeprecatedDDMStructureKey
- Specified by:
getDeprecatedDDMStructureKey
in interfacecom.liferay.document.library.kernel.util.DL
-
getDividedPath
- Specified by:
getDividedPath
in interfacecom.liferay.document.library.kernel.util.DL
-
getEmailDefinitionTerms
public Map<String,String> getEmailDefinitionTerms(PortletRequest portletRequest, String emailFromAddress, String emailFromName) - Specified by:
getEmailDefinitionTerms
in interfacecom.liferay.document.library.kernel.util.DL
-
getEmailFromDefinitionTerms
public Map<String,String> getEmailFromDefinitionTerms(PortletRequest portletRequest, String emailFromAddress, String emailFromName) - Specified by:
getEmailFromDefinitionTerms
in interfacecom.liferay.document.library.kernel.util.DL
-
getFileEntries
public List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(com.liferay.portal.kernel.search.Hits hits) - Specified by:
getFileEntries
in interfacecom.liferay.document.library.kernel.util.DL
-
getFileEntryImage
public String getFileEntryImage(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) - Specified by:
getFileEntryImage
in interfacecom.liferay.document.library.kernel.util.DL
-
getFileIcon
- Specified by:
getFileIcon
in interfacecom.liferay.document.library.kernel.util.DL
-
getFileIconCssClass
- Specified by:
getFileIconCssClass
in interfacecom.liferay.document.library.kernel.util.DL
-
getGenericName
- Specified by:
getGenericName
in interfacecom.liferay.document.library.kernel.util.DL
-
getPreviewURL
@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) Deprecated.As of Mueller (7.2.x), replaced bycom.liferay.document.library.util.DLURLHelper#getPreviewURL(FileEntry, FileVersion, ThemeDisplay, String)
- Specified by:
getPreviewURL
in interfacecom.liferay.document.library.kernel.util.DL
-
getPreviewURL
@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) Deprecated.As of Mueller (7.2.x), replaced bycom.liferay.document.library.util.DLURLHelper#getPreviewURL(FileEntry, FileVersion, ThemeDisplay, String, boolean, boolean)
- Specified by:
getPreviewURL
in interfacecom.liferay.document.library.kernel.util.DL
-
getRepositoryModelOrderByComparator
public <T> com.liferay.portal.kernel.util.OrderByComparator<T> getRepositoryModelOrderByComparator(String orderByCol, String orderByType) - Specified by:
getRepositoryModelOrderByComparator
in interfacecom.liferay.document.library.kernel.util.DL
-
getRepositoryModelOrderByComparator
public <T> com.liferay.portal.kernel.util.OrderByComparator<T> getRepositoryModelOrderByComparator(String orderByCol, String orderByType, boolean orderByModel) - Specified by:
getRepositoryModelOrderByComparator
in interfacecom.liferay.document.library.kernel.util.DL
-
getSanitizedFileName
- Specified by:
getSanitizedFileName
in interfacecom.liferay.document.library.kernel.util.DL
-
getTempFileId
- Specified by:
getTempFileId
in interfacecom.liferay.document.library.kernel.util.DL
-
getTempFileId
- Specified by:
getTempFileId
in interfacecom.liferay.document.library.kernel.util.DL
-
getThumbnailStyle
- Specified by:
getThumbnailStyle
in interfacecom.liferay.document.library.kernel.util.DL
-
getThumbnailStyle
- Specified by:
getThumbnailStyle
in interfacecom.liferay.document.library.kernel.util.DL
-
getThumbnailStyle
- Specified by:
getThumbnailStyle
in interfacecom.liferay.document.library.kernel.util.DL
-
getTitleWithExtension
- Specified by:
getTitleWithExtension
in interfacecom.liferay.document.library.kernel.util.DL
-
getTitleWithExtension
- Specified by:
getTitleWithExtension
in interfacecom.liferay.document.library.kernel.util.DL
-
getUniqueFileName
public String getUniqueFileName(long groupId, long folderId, String fileName, boolean ignoreDuplicateTitle) - Specified by:
getUniqueFileName
in interfacecom.liferay.document.library.kernel.util.DL
-
getUniqueTitle
- Specified by:
getUniqueTitle
in interfacecom.liferay.document.library.kernel.util.DL
-
hasWorkflowDefinitionLink
public boolean hasWorkflowDefinitionLink(long companyId, long groupId, long folderId, long fileEntryTypeId) - Specified by:
hasWorkflowDefinitionLink
in interfacecom.liferay.document.library.kernel.util.DL
-
isAutoGeneratedDLFileEntryTypeDDMStructureKey
- Specified by:
isAutoGeneratedDLFileEntryTypeDDMStructureKey
in interfacecom.liferay.document.library.kernel.util.DL
-
isOfficeExtension
- Specified by:
isOfficeExtension
in interfacecom.liferay.document.library.kernel.util.DL
-
isValidVersion
- Specified by:
isValidVersion
in interfacecom.liferay.document.library.kernel.util.DL
-
startWorkflowInstance
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 - Specified by:
startWorkflowInstance
in interfacecom.liferay.document.library.kernel.util.DL
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getEntryURL
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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getImageSrc
-
getImageSrc
-
com.liferay.document.library.util.DLURLHelper#getPreviewURL(FileEntry, FileVersion, ThemeDisplay, String)