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 |
getDLControlPanelLink(PortletRequest portletRequest,
long folderId)
|
String |
getFileEntryImage(FileEntry fileEntry,
ThemeDisplay themeDisplay)
|
String |
getFileIcon(String extension)
|
String |
getGenericName(String extension)
|
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. 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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DLImpl
public DLImpl()
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
getDLControlPanelLink
public String getDLControlPanelLink(PortletRequest portletRequest,
long folderId)
throws PortalException,
SystemException
- Specified by:
getDLControlPanelLink in interface DL
- Throws:
PortalException
SystemException
getFileEntryImage
public String getFileEntryImage(FileEntry fileEntry,
ThemeDisplay themeDisplay)
- Specified by:
getFileEntryImage in interface DL
getFileIcon
public String getFileIcon(String extension)
- Specified by:
getFileIcon in interface DL
getGenericName
public String getGenericName(String extension)
- Specified by:
getGenericName in interface DL
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.
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
getDefaultFolderId
protected long getDefaultFolderId(javax.servlet.http.HttpServletRequest request)
throws Exception
- Throws:
Exception