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(javax.portlet.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) |
Map<String,String> |
getEmailDefinitionTerms(javax.portlet.PortletRequest portletRequest,
String emailFromAddress,
String emailFromName) |
Map<String,String> |
getEmailFromDefinitionTerms(javax.portlet.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) |
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 |
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,
boolean ignoreDuplicateTitle) |
String |
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) |
public int compareVersions(String version1, String version2)
compareVersions
in interface com.liferay.document.library.kernel.util.DL
public void destroy()
public String getAbsolutePath(javax.portlet.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 Map<String,String> getEmailDefinitionTerms(javax.portlet.PortletRequest portletRequest, String emailFromAddress, String emailFromName)
getEmailDefinitionTerms
in interface com.liferay.document.library.kernel.util.DL
public Map<String,String> getEmailFromDefinitionTerms(javax.portlet.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 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
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, boolean ignoreDuplicateTitle)
getUniqueFileName
in interface com.liferay.document.library.kernel.util.DL
public String getUniqueTitle(long groupId, long folderId, String title)
getUniqueTitle
in interface com.liferay.document.library.kernel.util.DL
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)