Liferay 6.1.2-ce-ga3

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 OFFICE_EXTENSION
           
static String OFFICE_EXTENSION_PATH
           
 
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 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 getFileEntryImage(FileEntry fileEntry, ThemeDisplay themeDisplay)
           
static String getFileIcon(String extension)
           
static String getGenericName(String extension)
           
static long[] getGroupIds(long groupId)
           
static long[] getGroupIds(ThemeDisplay themeDisplay)
           
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 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 openDocumentUrl)
           
static boolean hasWorkflowDefinitionLink(long companyId, long groupId, long folderId, long fileEntryTypeId)
           
static boolean isAutoGeneratedDLFileEntryTypeDDMStructureKey(String ddmStructureKey)
           
static boolean isOfficeExtension(String extension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OFFICE_EXTENSION

public static final String OFFICE_EXTENSION
See Also:
Constant Field Values

OFFICE_EXTENSION_PATH

public static final String OFFICE_EXTENSION_PATH
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)

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)

getFileEntryImage

public static String getFileEntryImage(FileEntry fileEntry,
                                       ThemeDisplay themeDisplay)

getFileIcon

public static String getFileIcon(String extension)

getGenericName

public static String getGenericName(String extension)

getGroupIds

public static long[] getGroupIds(long groupId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getGroupIds

public static long[] getGroupIds(ThemeDisplay themeDisplay)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

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

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 openDocumentUrl)
                           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)

isOfficeExtension

public static boolean isOfficeExtension(String extension)

Liferay 6.1.2-ce-ga3