com.liferay.portlet.documentlibrary.util
Class DLImpl
java.lang.Object
com.liferay.portlet.documentlibrary.util.DLImpl
- All Implemented Interfaces:
- DL
public class DLImpl
- extends Object
- implements DL
|
Method Summary |
int |
compareVersions(String version1,
String version2)
|
String |
getAbsolutePath(PortletRequest portletRequest,
long folderId)
|
Set<String> |
getAllMediaGalleryMimeTypes()
|
String |
getDDMStructureKey(DLFileEntryType dlFileEntryType)
|
String |
getDDMStructureKey(String fileEntryTypeUuid)
|
String |
getDeprecatedDDMStructureKey(DLFileEntryType dlFileEntryType)
|
String |
getDeprecatedDDMStructureKey(long fileEntryTypeId)
|
String |
getDividedPath(long id)
|
String |
getDLFileEntryControlPanelLink(PortletRequest portletRequest,
long fileEntryId)
|
String |
getDLFolderControlPanelLink(PortletRequest portletRequest,
long folderId)
|
String |
getDownloadURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString)
|
String |
getDownloadURL(FileEntry fileEntry,
FileVersion fileVersion,
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(DLFileVersion dlFileVersion,
ServiceContext serviceContext)
|
List<FileEntry> |
getFileEntries(Hits hits)
|
String |
getFileEntryImage(FileEntry fileEntry,
ThemeDisplay themeDisplay)
|
Set<Long> |
getFileEntryTypeSubscriptionClassPKs(long userId)
|
String |
getFileIcon(String extension)
|
String |
getFileIconCssClass(String extension)
|
String |
getGenericName(String extension)
|
String |
getImagePreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay)
|
String |
getImagePreviewURL(FileEntry fileEntry,
ThemeDisplay themeDisplay)
|
protected String |
getImageSrc(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString)
|
String |
getPreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString)
|
String |
getPreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString,
boolean appendToken)
Deprecated. As of 6.2.0, replaced by getPreviewURL(FileEntry,
FileVersion, ThemeDisplay, String, boolean, boolean) |
String |
getPreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString,
boolean appendVersion,
boolean absoluteURL)
|
|
getRepositoryModelOrderByComparator(String orderByCol,
String orderByType)
|
|
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(FileEntry fileEntry,
DLFileShortcut dlFileShortcut,
ThemeDisplay themeDisplay)
Deprecated. As of 7.0.0, replaced by getThumbnailSrc(FileEntry,
ThemeDisplay) |
String |
getThumbnailSrc(FileEntry fileEntry,
FileVersion fileVersion,
DLFileShortcut dlFileShortcut,
ThemeDisplay themeDisplay)
Deprecated. As of 7.0.0, replaced by getThumbnailSrc(FileEntry,
FileVersion, ThemeDisplay) |
String |
getThumbnailSrc(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay)
|
String |
getThumbnailSrc(FileEntry fileEntry,
ThemeDisplay themeDisplay)
|
String |
getThumbnailStyle()
|
String |
getThumbnailStyle(boolean max,
int margin)
|
String |
getThumbnailStyle(boolean max,
int margin,
int height,
int width)
|
String |
getTitleWithExtension(FileEntry fileEntry)
|
String |
getTitleWithExtension(String title,
String extension)
|
String |
getUniqueFileName(long groupId,
long folderId,
String fileName)
|
String |
getWebDavURL(ThemeDisplay themeDisplay,
Folder folder,
FileEntry fileEntry)
|
String |
getWebDavURL(ThemeDisplay themeDisplay,
Folder folder,
FileEntry fileEntry,
boolean manualCheckInRequired)
|
String |
getWebDavURL(ThemeDisplay themeDisplay,
Folder folder,
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,
DLFileVersion dlFileVersion,
String syncEventType,
ServiceContext serviceContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DLImpl
public DLImpl()
compareVersions
public int compareVersions(String version1,
String version2)
- Specified by:
compareVersions in interface DL
getAbsolutePath
public String getAbsolutePath(PortletRequest portletRequest,
long folderId)
throws PortalException
- Specified by:
getAbsolutePath in interface DL
- Throws:
PortalException
getAllMediaGalleryMimeTypes
public Set<String> getAllMediaGalleryMimeTypes()
- Specified by:
getAllMediaGalleryMimeTypes in interface DL
getDDMStructureKey
public String getDDMStructureKey(DLFileEntryType dlFileEntryType)
- Specified by:
getDDMStructureKey in interface DL
getDDMStructureKey
public String getDDMStructureKey(String fileEntryTypeUuid)
- Specified by:
getDDMStructureKey in interface DL
getDeprecatedDDMStructureKey
public String getDeprecatedDDMStructureKey(DLFileEntryType dlFileEntryType)
- Specified by:
getDeprecatedDDMStructureKey in interface DL
getDeprecatedDDMStructureKey
public String getDeprecatedDDMStructureKey(long fileEntryTypeId)
- Specified by:
getDeprecatedDDMStructureKey in interface DL
getDividedPath
public String getDividedPath(long id)
- Specified by:
getDividedPath in interface DL
getDLFileEntryControlPanelLink
public String getDLFileEntryControlPanelLink(PortletRequest portletRequest,
long fileEntryId)
- Specified by:
getDLFileEntryControlPanelLink in interface DL
getDLFolderControlPanelLink
public String getDLFolderControlPanelLink(PortletRequest portletRequest,
long folderId)
- Specified by:
getDLFolderControlPanelLink in interface DL
getDownloadURL
public String getDownloadURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString)
- Specified by:
getDownloadURL in interface DL
getDownloadURL
public String getDownloadURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString,
boolean appendVersion,
boolean absoluteURL)
- Specified by:
getDownloadURL in interface DL
getEmailDefinitionTerms
public Map<String,String> getEmailDefinitionTerms(PortletRequest portletRequest,
String emailFromAddress,
String emailFromName)
- Specified by:
getEmailDefinitionTerms in interface DL
getEmailFromDefinitionTerms
public Map<String,String> getEmailFromDefinitionTerms(PortletRequest portletRequest,
String emailFromAddress,
String emailFromName)
- Specified by:
getEmailFromDefinitionTerms in interface DL
getFileEntries
public List<FileEntry> getFileEntries(Hits hits)
- Specified by:
getFileEntries in interface DL
getFileEntryImage
public String getFileEntryImage(FileEntry fileEntry,
ThemeDisplay themeDisplay)
- Specified by:
getFileEntryImage in interface DL
getFileEntryTypeSubscriptionClassPKs
public Set<Long> getFileEntryTypeSubscriptionClassPKs(long userId)
- Specified by:
getFileEntryTypeSubscriptionClassPKs in interface DL
getFileIcon
public String getFileIcon(String extension)
- Specified by:
getFileIcon in interface DL
getFileIconCssClass
public String getFileIconCssClass(String extension)
- Specified by:
getFileIconCssClass in interface DL
getGenericName
public String getGenericName(String extension)
- Specified by:
getGenericName in interface DL
getImagePreviewURL
public String getImagePreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay)
throws Exception
- Specified by:
getImagePreviewURL in interface DL
- Throws:
Exception
getImagePreviewURL
public String getImagePreviewURL(FileEntry fileEntry,
ThemeDisplay themeDisplay)
throws Exception
- Specified by:
getImagePreviewURL in interface DL
- Throws:
Exception
getPreviewURL
public String getPreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString)
- Specified by:
getPreviewURL in interface DL
getPreviewURL
@Deprecated
public String getPreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString,
boolean appendToken)
- Deprecated. As of 6.2.0, replaced by
getPreviewURL(FileEntry,
FileVersion, ThemeDisplay, String, boolean, boolean)
- Specified by:
getPreviewURL in interface DL
getPreviewURL
public String getPreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString,
boolean appendVersion,
boolean absoluteURL)
- Specified by:
getPreviewURL in interface DL
getRepositoryModelOrderByComparator
public <T> OrderByComparator<T> getRepositoryModelOrderByComparator(String orderByCol,
String orderByType)
- Specified by:
getRepositoryModelOrderByComparator in interface DL
getRepositoryModelOrderByComparator
public <T> OrderByComparator<T> getRepositoryModelOrderByComparator(String orderByCol,
String orderByType,
boolean orderByModel)
- Specified by:
getRepositoryModelOrderByComparator in interface DL
getSanitizedFileName
public String getSanitizedFileName(String title,
String extension)
- Specified by:
getSanitizedFileName in interface DL
getTempFileId
public String getTempFileId(long id,
String version)
- Specified by:
getTempFileId in interface DL
getTempFileId
public String getTempFileId(long id,
String version,
String languageId)
- Specified by:
getTempFileId in interface DL
getThumbnailSrc
@Deprecated
public String getThumbnailSrc(FileEntry fileEntry,
DLFileShortcut dlFileShortcut,
ThemeDisplay themeDisplay)
throws Exception
- Deprecated. As of 7.0.0, replaced by
getThumbnailSrc(FileEntry,
ThemeDisplay)
- Specified by:
getThumbnailSrc in interface DL
- Throws:
Exception
getThumbnailSrc
@Deprecated
public String getThumbnailSrc(FileEntry fileEntry,
FileVersion fileVersion,
DLFileShortcut dlFileShortcut,
ThemeDisplay themeDisplay)
throws Exception
- Deprecated. As of 7.0.0, replaced by
getThumbnailSrc(FileEntry,
FileVersion, ThemeDisplay)
- Specified by:
getThumbnailSrc in interface DL
- Throws:
Exception
getThumbnailSrc
public String getThumbnailSrc(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay)
throws Exception
- Specified by:
getThumbnailSrc in interface DL
- Throws:
Exception
getThumbnailSrc
public String getThumbnailSrc(FileEntry fileEntry,
ThemeDisplay themeDisplay)
throws Exception
- Specified by:
getThumbnailSrc in interface DL
- Throws:
Exception
getThumbnailStyle
public String getThumbnailStyle()
- Specified by:
getThumbnailStyle in interface DL
getThumbnailStyle
public String getThumbnailStyle(boolean max,
int margin)
- Specified by:
getThumbnailStyle in interface DL
getThumbnailStyle
public String getThumbnailStyle(boolean max,
int margin,
int height,
int width)
- Specified by:
getThumbnailStyle in interface DL
getTitleWithExtension
public String getTitleWithExtension(FileEntry fileEntry)
- Specified by:
getTitleWithExtension in interface DL
getTitleWithExtension
public String getTitleWithExtension(String title,
String extension)
- Specified by:
getTitleWithExtension in interface DL
getUniqueFileName
public String getUniqueFileName(long groupId,
long folderId,
String fileName)
- Specified by:
getUniqueFileName in interface DL
getWebDavURL
public String getWebDavURL(ThemeDisplay themeDisplay,
Folder folder,
FileEntry fileEntry)
throws PortalException
- Specified by:
getWebDavURL in interface DL
- Throws:
PortalException
getWebDavURL
public String getWebDavURL(ThemeDisplay themeDisplay,
Folder folder,
FileEntry fileEntry,
boolean manualCheckInRequired)
throws PortalException
- Specified by:
getWebDavURL in interface DL
- Throws:
PortalException
getWebDavURL
public String getWebDavURL(ThemeDisplay themeDisplay,
Folder folder,
FileEntry fileEntry,
boolean manualCheckInRequired,
boolean openDocumentUrl)
throws PortalException
- Specified by:
getWebDavURL in interface DL
- Throws:
PortalException
hasWorkflowDefinitionLink
public boolean hasWorkflowDefinitionLink(long companyId,
long groupId,
long folderId,
long fileEntryTypeId)
throws Exception
- Specified by:
hasWorkflowDefinitionLink in interface DL
- Throws:
Exception
isAutoGeneratedDLFileEntryTypeDDMStructureKey
public boolean isAutoGeneratedDLFileEntryTypeDDMStructureKey(String ddmStructureKey)
- Specified by:
isAutoGeneratedDLFileEntryTypeDDMStructureKey in interface DL
isOfficeExtension
public boolean isOfficeExtension(String extension)
- Specified by:
isOfficeExtension in interface DL
isSubscribedToFileEntryType
public boolean isSubscribedToFileEntryType(long companyId,
long groupId,
long userId,
long fileEntryTypeId)
- Specified by:
isSubscribedToFileEntryType in interface DL
isSubscribedToFolder
public boolean isSubscribedToFolder(long companyId,
long groupId,
long userId,
long folderId)
throws PortalException
- Specified by:
isSubscribedToFolder in interface DL
- Throws:
PortalException
isSubscribedToFolder
public boolean isSubscribedToFolder(long companyId,
long groupId,
long userId,
long folderId,
boolean recursive)
throws PortalException
- Specified by:
isSubscribedToFolder in interface DL
- Throws:
PortalException
isValidVersion
public boolean isValidVersion(String version)
- Specified by:
isValidVersion in interface DL
startWorkflowInstance
public void startWorkflowInstance(long userId,
DLFileVersion dlFileVersion,
String syncEventType,
ServiceContext serviceContext)
throws PortalException
- Specified by:
startWorkflowInstance in interface DL
- Throws:
PortalException
getEntryURL
protected String getEntryURL(DLFileVersion dlFileVersion,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
getImageSrc
protected String getImageSrc(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString)
throws Exception
- Throws:
Exception