com.liferay.portlet.documentlibrary.util.DL Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-service Show documentation
Show all versions of portal-service Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portlet.documentlibrary.util;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.portlet.LiferayPortletResponse;
import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.repository.model.FileVersion;
import com.liferay.portal.kernel.repository.model.Folder;
import com.liferay.portal.kernel.search.Hits;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.theme.ThemeDisplay;
import com.liferay.portlet.documentlibrary.model.DLFileEntryType;
import com.liferay.portlet.documentlibrary.model.DLFileShortcut;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import javax.portlet.PortletPreferences;
import javax.portlet.PortletRequest;
import javax.portlet.PortletURL;
import javax.portlet.RenderResponse;
import javax.servlet.http.HttpServletRequest;
/**
* @author Eudaldo Alonso
*/
public interface DL {
public static final String MANUAL_CHECK_IN_REQUIRED =
"manualCheckInRequired";
public static final String MANUAL_CHECK_IN_REQUIRED_PATH =
StringPool.SLASH + MANUAL_CHECK_IN_REQUIRED;
public static final String OFFICE_EXTENSION = "officeExtension";
public static final String OFFICE_EXTENSION_PATH =
StringPool.SLASH + OFFICE_EXTENSION;
public static final String WEBDAV_CHECK_IN_MODE = "webDAVCheckInMode";
public void addPortletBreadcrumbEntries(
DLFileShortcut dlFileShortcut, HttpServletRequest request,
RenderResponse renderResponse)
throws Exception;
public void addPortletBreadcrumbEntries(
FileEntry fileEntry, HttpServletRequest request,
RenderResponse renderResponse)
throws Exception;
public void addPortletBreadcrumbEntries(
Folder folder, HttpServletRequest request,
LiferayPortletResponse liferayPortletResponse)
throws Exception;
public void addPortletBreadcrumbEntries(
Folder folder, HttpServletRequest request, PortletURL portletURL)
throws Exception;
public void addPortletBreadcrumbEntries(
Folder folder, HttpServletRequest request,
RenderResponse renderResponse)
throws Exception;
public void addPortletBreadcrumbEntries(
long folderId, HttpServletRequest request,
RenderResponse renderResponse)
throws Exception;
public int compareVersions(String version1, String version2);
public String getAbsolutePath(PortletRequest portletRequest, long folderId)
throws PortalException, SystemException;
public Set getAllMediaGalleryMimeTypes();
public String getDDMStructureKey(DLFileEntryType dlFileEntryType);
public String getDDMStructureKey(String fileEntryTypeUuid);
public String getDeprecatedDDMStructureKey(DLFileEntryType dlFileEntryType);
public String getDeprecatedDDMStructureKey(long fileEntryTypeId);
public String getDividedPath(long id);
public String getDLFileEntryControlPanelLink(
PortletRequest portletRequest, long fileEntryId)
throws PortalException, SystemException;
public String getDLFolderControlPanelLink(
PortletRequest portletRequest, long folderId)
throws PortalException, SystemException;
public Map getEmailFileEntryAddedBodyMap(
PortletPreferences preferences);
public boolean getEmailFileEntryAddedEnabled(
PortletPreferences preferences);
public Map getEmailFileEntryAddedSubjectMap(
PortletPreferences preferences);
public Map getEmailFileEntryUpdatedBodyMap(
PortletPreferences preferences);
public boolean getEmailFileEntryUpdatedEnabled(
PortletPreferences preferences);
public Map getEmailFileEntryUpdatedSubjectMap(
PortletPreferences preferences);
public String getEmailFromAddress(
PortletPreferences preferences, long companyId)
throws SystemException;
public String getEmailFromName(
PortletPreferences preferences, long companyId)
throws SystemException;
public List