Liferay 6.2.0-ce-m1

com.liferay.portlet.documentlibrary.util
Class DLUtil

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.util.DLUtil

public class DLUtil
extends Object


Field Summary
static String MANUAL_CHECK_IN_REQUIRED
           
static String MANUAL_CHECK_IN_REQUIRED_PATH
           
static String WEBDAV_CHECK_IN_MODE
           
 
Method Summary
static void addPortletBreadcrumbEntries(DLFileShortcut dlFileShortcut, javax.servlet.http.HttpServletRequest request, RenderResponse renderResponse)
           
static void addPortletBreadcrumbEntries(FileEntry fileEntry, javax.servlet.http.HttpServletRequest request, RenderResponse renderResponse)
           
static void addPortletBreadcrumbEntries(Folder folder, javax.servlet.http.HttpServletRequest request, LiferayPortletResponse liferayPortletResponse)
           
static void addPortletBreadcrumbEntries(Folder folder, javax.servlet.http.HttpServletRequest request, PortletURL portletURL)
           
static void addPortletBreadcrumbEntries(Folder folder, javax.servlet.http.HttpServletRequest request, RenderResponse renderResponse)
           
static void addPortletBreadcrumbEntries(long folderId, javax.servlet.http.HttpServletRequest request, RenderResponse renderResponse)
           
static int compareVersions(String version1, String version2)
           
static String getAbsolutePath(PortletRequest portletRequest, long folderId)
           
static Set<String> getAllMediaGalleryMimeTypes()
           
static String getDDMStructureKey(DLFileEntryType dlFileEntryType)
           
static String getDDMStructureKey(String fileEntryTypeUuid)
           
static String getDeprecatedDDMStructureKey(DLFileEntryType dlFileEntryType)
           
static String getDeprecatedDDMStructureKey(long fileEntryTypeId)
           
static String getDividedPath(long id)
           
static String getDLControlPanelLink(PortletRequest portletRequest, long folderId)
           
static String getFileEntryImage(FileEntry fileEntry, ThemeDisplay themeDisplay)
           
static String getFileIcon(String extension)
           
static String getGenericName(String extension)
           
static String[] getMediaGalleryMimeTypes(PortletPreferences portletPreferences, PortletRequest portletRequest)
           
static String getPreviewURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString)
           
static String getPreviewURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString, boolean appendToken)
          Deprecated. getPreviewURL(FileEntry, FileVersion, ThemeDisplay, String, boolean, boolean)
static String getPreviewURL(FileEntry fileEntry, FileVersion fileVersion, ThemeDisplay themeDisplay, String queryString, boolean appendVersion, boolean absoluteURL)
           
static OrderByComparator getRepositoryModelOrderByComparator(String orderByCol, String orderByType)
           
static String getTempFileId(long id, String version)
           
static String getTempFileId(long id, String version, String languageId)
           
static String getThumbnailSrc(FileEntry fileEntry, DLFileShortcut dlFileShortcut, ThemeDisplay themeDisplay)
           
static String getThumbnailSrc(FileEntry fileEntry, FileVersion fileVersion, DLFileShortcut dlFileShortcut, ThemeDisplay themeDisplay)
           
static String getThumbnailStyle()
           
static String getThumbnailStyle(boolean max, int margin)
           
static String getTitleWithExtension(FileEntry fileEntry)
           
static String getTitleWithExtension(String title, String extension)
           
static String getWebDavURL(ThemeDisplay themeDisplay, Folder folder, FileEntry fileEntry)
           
static String getWebDavURL(ThemeDisplay themeDisplay, Folder folder, FileEntry fileEntry, boolean manualCheckInRequired)
           
static boolean hasWorkflowDefinitionLink(long companyId, long groupId, long folderId, long fileEntryTypeId)
           
static boolean isAutoGeneratedDLFileEntryTypeDDMStructureKey(String ddmStructureKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MANUAL_CHECK_IN_REQUIRED

public static final String MANUAL_CHECK_IN_REQUIRED
See Also:
Constant Field Values

MANUAL_CHECK_IN_REQUIRED_PATH

public static final String MANUAL_CHECK_IN_REQUIRED_PATH
See Also:
Constant Field Values

WEBDAV_CHECK_IN_MODE

public static final String WEBDAV_CHECK_IN_MODE
See Also:
Constant Field Values
Method Detail

addPortletBreadcrumbEntries

public static void addPortletBreadcrumbEntries(DLFileShortcut dlFileShortcut,
                                               javax.servlet.http.HttpServletRequest request,
                                               RenderResponse renderResponse)
                                        throws Exception
Throws:
Exception

addPortletBreadcrumbEntries

public static void addPortletBreadcrumbEntries(FileEntry fileEntry,
                                               javax.servlet.http.HttpServletRequest request,
                                               RenderResponse renderResponse)
                                        throws Exception
Throws:
Exception

addPortletBreadcrumbEntries

public static void addPortletBreadcrumbEntries(Folder folder,
                                               javax.servlet.http.HttpServletRequest request,
                                               LiferayPortletResponse liferayPortletResponse)
                                        throws Exception
Throws:
Exception

addPortletBreadcrumbEntries

public static void addPortletBreadcrumbEntries(Folder folder,
                                               javax.servlet.http.HttpServletRequest request,
                                               PortletURL portletURL)
                                        throws Exception
Throws:
Exception

addPortletBreadcrumbEntries

public static void addPortletBreadcrumbEntries(Folder folder,
                                               javax.servlet.http.HttpServletRequest request,
                                               RenderResponse renderResponse)
                                        throws Exception
Throws:
Exception

addPortletBreadcrumbEntries

public static void addPortletBreadcrumbEntries(long folderId,
                                               javax.servlet.http.HttpServletRequest request,
                                               RenderResponse renderResponse)
                                        throws Exception
Throws:
Exception

compareVersions

public static int compareVersions(String version1,
                                  String version2)

getAbsolutePath

public static String getAbsolutePath(PortletRequest portletRequest,
                                     long folderId)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getAllMediaGalleryMimeTypes

public static Set<String> getAllMediaGalleryMimeTypes()

getDDMStructureKey

public static String getDDMStructureKey(DLFileEntryType dlFileEntryType)

getDDMStructureKey

public static String getDDMStructureKey(String fileEntryTypeUuid)

getDeprecatedDDMStructureKey

public static String getDeprecatedDDMStructureKey(DLFileEntryType dlFileEntryType)

getDeprecatedDDMStructureKey

public static String getDeprecatedDDMStructureKey(long fileEntryTypeId)

getDividedPath

public static String getDividedPath(long id)

getDLControlPanelLink

public static String getDLControlPanelLink(PortletRequest portletRequest,
                                           long folderId)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getFileEntryImage

public static String getFileEntryImage(FileEntry fileEntry,
                                       ThemeDisplay themeDisplay)

getFileIcon

public static String getFileIcon(String extension)

getGenericName

public static String getGenericName(String extension)

getMediaGalleryMimeTypes

public static String[] getMediaGalleryMimeTypes(PortletPreferences portletPreferences,
                                                PortletRequest portletRequest)

getPreviewURL

public static String getPreviewURL(FileEntry fileEntry,
                                   FileVersion fileVersion,
                                   ThemeDisplay themeDisplay,
                                   String queryString)

getPreviewURL

public static String getPreviewURL(FileEntry fileEntry,
                                   FileVersion fileVersion,
                                   ThemeDisplay themeDisplay,
                                   String queryString,
                                   boolean appendToken)
Deprecated. getPreviewURL(FileEntry, FileVersion, ThemeDisplay, String, boolean, boolean)


getPreviewURL

public static String getPreviewURL(FileEntry fileEntry,
                                   FileVersion fileVersion,
                                   ThemeDisplay themeDisplay,
                                   String queryString,
                                   boolean appendVersion,
                                   boolean absoluteURL)

getRepositoryModelOrderByComparator

public static OrderByComparator getRepositoryModelOrderByComparator(String orderByCol,
                                                                    String orderByType)

getTempFileId

public static String getTempFileId(long id,
                                   String version)

getTempFileId

public static String getTempFileId(long id,
                                   String version,
                                   String languageId)

getThumbnailSrc

public static String getThumbnailSrc(FileEntry fileEntry,
                                     DLFileShortcut dlFileShortcut,
                                     ThemeDisplay themeDisplay)
                              throws Exception
Throws:
Exception

getThumbnailSrc

public static String getThumbnailSrc(FileEntry fileEntry,
                                     FileVersion fileVersion,
                                     DLFileShortcut dlFileShortcut,
                                     ThemeDisplay themeDisplay)
                              throws Exception
Throws:
Exception

getThumbnailStyle

public static String getThumbnailStyle()
                                throws Exception
Throws:
Exception

getThumbnailStyle

public static String getThumbnailStyle(boolean max,
                                       int margin)
                                throws Exception
Throws:
Exception

getTitleWithExtension

public static String getTitleWithExtension(FileEntry fileEntry)

getTitleWithExtension

public static String getTitleWithExtension(String title,
                                           String extension)

getWebDavURL

public static String getWebDavURL(ThemeDisplay themeDisplay,
                                  Folder folder,
                                  FileEntry fileEntry)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getWebDavURL

public static String getWebDavURL(ThemeDisplay themeDisplay,
                                  Folder folder,
                                  FileEntry fileEntry,
                                  boolean manualCheckInRequired)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

hasWorkflowDefinitionLink

public static boolean hasWorkflowDefinitionLink(long companyId,
                                                long groupId,
                                                long folderId,
                                                long fileEntryTypeId)
                                         throws Exception
Throws:
Exception

isAutoGeneratedDLFileEntryTypeDDMStructureKey

public static boolean isAutoGeneratedDLFileEntryTypeDDMStructureKey(String ddmStructureKey)

Liferay 6.2.0-ce-m1