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 |
void |
addPortletBreadcrumbEntries(DLFileShortcut dlFileShortcut,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
|
void |
addPortletBreadcrumbEntries(FileEntry fileEntry,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
|
void |
addPortletBreadcrumbEntries(Folder folder,
javax.servlet.http.HttpServletRequest request,
LiferayPortletResponse liferayPortletResponse)
|
void |
addPortletBreadcrumbEntries(Folder folder,
javax.servlet.http.HttpServletRequest request,
PortletURL portletURL)
|
void |
addPortletBreadcrumbEntries(Folder folder,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
|
void |
addPortletBreadcrumbEntries(long folderId,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
|
int |
compareVersions(String version1,
String version2)
|
String |
getAbsolutePath(PortletRequest portletRequest,
long folderId)
|
Set<String> |
getAllMediaGalleryMimeTypes()
|
String |
getDDMStructureKey(DLFileEntryType dlFileEntryType)
|
String |
getDDMStructureKey(String fileEntryTypeUuid)
|
protected long |
getDefaultFolderId(javax.servlet.http.HttpServletRequest request)
|
String |
getDeprecatedDDMStructureKey(DLFileEntryType dlFileEntryType)
|
String |
getDeprecatedDDMStructureKey(long fileEntryTypeId)
|
String |
getDividedPath(long id)
|
String |
getDLFileEntryControlPanelLink(PortletRequest portletRequest,
long fileEntryId)
|
String |
getDLFolderControlPanelLink(PortletRequest portletRequest,
long folderId)
|
Map<Locale,String> |
getEmailFileEntryAddedBodyMap(PortletPreferences preferences)
|
boolean |
getEmailFileEntryAddedEnabled(PortletPreferences preferences)
|
Map<Locale,String> |
getEmailFileEntryAddedSubjectMap(PortletPreferences preferences)
|
Map<Locale,String> |
getEmailFileEntryUpdatedBodyMap(PortletPreferences preferences)
|
boolean |
getEmailFileEntryUpdatedEnabled(PortletPreferences preferences)
|
Map<Locale,String> |
getEmailFileEntryUpdatedSubjectMap(PortletPreferences preferences)
|
String |
getEmailFromAddress(PortletPreferences preferences,
long companyId)
|
String |
getEmailFromName(PortletPreferences preferences,
long companyId)
|
List<Object> |
getEntries(Hits hits)
|
String |
getFileEntryImage(FileEntry fileEntry,
ThemeDisplay themeDisplay)
|
Set<Long> |
getFileEntryTypeSubscriptionClassPKs(long userId)
|
String |
getFileIcon(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)
|
static FileVersion |
getLatestFileVersion(FileEntry fileEntry,
boolean trusted)
|
String[] |
getMediaGalleryMimeTypes(PortletPreferences portletPreferences,
PortletRequest portletRequest)
|
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)
|
OrderByComparator |
getRepositoryModelOrderByComparator(String orderByCol,
String orderByType)
|
String |
getTempFileId(long id,
String version)
|
String |
getTempFileId(long id,
String version,
String languageId)
|
String |
getThumbnailSrc(FileEntry fileEntry,
DLFileShortcut dlFileShortcut,
ThemeDisplay themeDisplay)
|
String |
getThumbnailSrc(FileEntry fileEntry,
FileVersion fileVersion,
DLFileShortcut dlFileShortcut,
ThemeDisplay themeDisplay)
|
String |
getThumbnailStyle()
|
String |
getThumbnailStyle(boolean max,
int margin)
|
String |
getTitleWithExtension(FileEntry fileEntry)
|
String |
getTitleWithExtension(String title,
String extension)
|
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DLImpl
public DLImpl()
getLatestFileVersion
public static FileVersion getLatestFileVersion(FileEntry fileEntry,
boolean trusted)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPortletBreadcrumbEntries
public void addPortletBreadcrumbEntries(DLFileShortcut dlFileShortcut,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
throws Exception
- Specified by:
addPortletBreadcrumbEntries
in interface DL
- Throws:
Exception
addPortletBreadcrumbEntries
public void addPortletBreadcrumbEntries(FileEntry fileEntry,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
throws Exception
- Specified by:
addPortletBreadcrumbEntries
in interface DL
- Throws:
Exception
addPortletBreadcrumbEntries
public void addPortletBreadcrumbEntries(Folder folder,
javax.servlet.http.HttpServletRequest request,
LiferayPortletResponse liferayPortletResponse)
throws Exception
- Specified by:
addPortletBreadcrumbEntries
in interface DL
- Throws:
Exception
addPortletBreadcrumbEntries
public void addPortletBreadcrumbEntries(Folder folder,
javax.servlet.http.HttpServletRequest request,
PortletURL portletURL)
throws Exception
- Specified by:
addPortletBreadcrumbEntries
in interface DL
- Throws:
Exception
addPortletBreadcrumbEntries
public void addPortletBreadcrumbEntries(Folder folder,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
throws Exception
- Specified by:
addPortletBreadcrumbEntries
in interface DL
- Throws:
Exception
addPortletBreadcrumbEntries
public void addPortletBreadcrumbEntries(long folderId,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
throws Exception
- Specified by:
addPortletBreadcrumbEntries
in interface DL
- Throws:
Exception
compareVersions
public int compareVersions(String version1,
String version2)
- Specified by:
compareVersions
in interface DL
getAbsolutePath
public String getAbsolutePath(PortletRequest portletRequest,
long folderId)
throws PortalException,
SystemException
- Specified by:
getAbsolutePath
in interface DL
- Throws:
PortalException
SystemException
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)
throws PortalException,
SystemException
- Specified by:
getDLFileEntryControlPanelLink
in interface DL
- Throws:
PortalException
SystemException
getDLFolderControlPanelLink
public String getDLFolderControlPanelLink(PortletRequest portletRequest,
long folderId)
throws PortalException,
SystemException
- Specified by:
getDLFolderControlPanelLink
in interface DL
- Throws:
PortalException
SystemException
getEmailFileEntryAddedBodyMap
public Map<Locale,String> getEmailFileEntryAddedBodyMap(PortletPreferences preferences)
- Specified by:
getEmailFileEntryAddedBodyMap
in interface DL
getEmailFileEntryAddedEnabled
public boolean getEmailFileEntryAddedEnabled(PortletPreferences preferences)
- Specified by:
getEmailFileEntryAddedEnabled
in interface DL
getEmailFileEntryAddedSubjectMap
public Map<Locale,String> getEmailFileEntryAddedSubjectMap(PortletPreferences preferences)
- Specified by:
getEmailFileEntryAddedSubjectMap
in interface DL
getEmailFileEntryUpdatedBodyMap
public Map<Locale,String> getEmailFileEntryUpdatedBodyMap(PortletPreferences preferences)
- Specified by:
getEmailFileEntryUpdatedBodyMap
in interface DL
getEmailFileEntryUpdatedEnabled
public boolean getEmailFileEntryUpdatedEnabled(PortletPreferences preferences)
- Specified by:
getEmailFileEntryUpdatedEnabled
in interface DL
getEmailFileEntryUpdatedSubjectMap
public Map<Locale,String> getEmailFileEntryUpdatedSubjectMap(PortletPreferences preferences)
- Specified by:
getEmailFileEntryUpdatedSubjectMap
in interface DL
getEmailFromAddress
public String getEmailFromAddress(PortletPreferences preferences,
long companyId)
throws SystemException
- Specified by:
getEmailFromAddress
in interface DL
- Throws:
SystemException
getEmailFromName
public String getEmailFromName(PortletPreferences preferences,
long companyId)
throws SystemException
- Specified by:
getEmailFromName
in interface DL
- Throws:
SystemException
getEntries
public List<Object> getEntries(Hits hits)
- Specified by:
getEntries
in interface DL
getFileEntryImage
public String getFileEntryImage(FileEntry fileEntry,
ThemeDisplay themeDisplay)
- Specified by:
getFileEntryImage
in interface DL
getFileEntryTypeSubscriptionClassPKs
public Set<Long> getFileEntryTypeSubscriptionClassPKs(long userId)
throws SystemException
- Specified by:
getFileEntryTypeSubscriptionClassPKs
in interface DL
- Throws:
SystemException
getFileIcon
public String getFileIcon(String extension)
- Specified by:
getFileIcon
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
getMediaGalleryMimeTypes
public String[] getMediaGalleryMimeTypes(PortletPreferences portletPreferences,
PortletRequest portletRequest)
- Specified by:
getMediaGalleryMimeTypes
in interface DL
getPreviewURL
public String getPreviewURL(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString)
- Specified by:
getPreviewURL
in interface DL
getPreviewURL
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 OrderByComparator getRepositoryModelOrderByComparator(String orderByCol,
String orderByType)
- Specified by:
getRepositoryModelOrderByComparator
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
public String getThumbnailSrc(FileEntry fileEntry,
DLFileShortcut dlFileShortcut,
ThemeDisplay themeDisplay)
throws Exception
- Specified by:
getThumbnailSrc
in interface DL
- Throws:
Exception
getThumbnailSrc
public String getThumbnailSrc(FileEntry fileEntry,
FileVersion fileVersion,
DLFileShortcut dlFileShortcut,
ThemeDisplay themeDisplay)
throws Exception
- Specified by:
getThumbnailSrc
in interface DL
- Throws:
Exception
getThumbnailStyle
public String getThumbnailStyle()
throws Exception
- Specified by:
getThumbnailStyle
in interface DL
- Throws:
Exception
getThumbnailStyle
public String getThumbnailStyle(boolean max,
int margin)
throws Exception
- Specified by:
getThumbnailStyle
in interface DL
- Throws:
Exception
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
getWebDavURL
public String getWebDavURL(ThemeDisplay themeDisplay,
Folder folder,
FileEntry fileEntry)
throws PortalException,
SystemException
- Specified by:
getWebDavURL
in interface DL
- Throws:
PortalException
SystemException
getWebDavURL
public String getWebDavURL(ThemeDisplay themeDisplay,
Folder folder,
FileEntry fileEntry,
boolean manualCheckInRequired)
throws PortalException,
SystemException
- Specified by:
getWebDavURL
in interface DL
- Throws:
PortalException
SystemException
getWebDavURL
public String getWebDavURL(ThemeDisplay themeDisplay,
Folder folder,
FileEntry fileEntry,
boolean manualCheckInRequired,
boolean openDocumentUrl)
throws PortalException,
SystemException
- Specified by:
getWebDavURL
in interface DL
- Throws:
PortalException
SystemException
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)
throws SystemException
- Specified by:
isSubscribedToFileEntryType
in interface DL
- Throws:
SystemException
isSubscribedToFolder
public boolean isSubscribedToFolder(long companyId,
long groupId,
long userId,
long folderId)
throws PortalException,
SystemException
- Specified by:
isSubscribedToFolder
in interface DL
- Throws:
PortalException
SystemException
isSubscribedToFolder
public boolean isSubscribedToFolder(long companyId,
long groupId,
long userId,
long folderId,
boolean recursive)
throws PortalException,
SystemException
- Specified by:
isSubscribedToFolder
in interface DL
- Throws:
PortalException
SystemException
isValidVersion
public boolean isValidVersion(String version)
- Specified by:
isValidVersion
in interface DL
getDefaultFolderId
protected long getDefaultFolderId(javax.servlet.http.HttpServletRequest request)
throws Exception
- Throws:
Exception
getImageSrc
protected String getImageSrc(FileEntry fileEntry,
FileVersion fileVersion,
ThemeDisplay themeDisplay,
String queryString)
throws Exception
- Throws:
Exception