001
014
015 package com.liferay.portlet.trash.util;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.portlet.LiferayPortletResponse;
020 import com.liferay.portal.kernel.search.Hits;
021 import com.liferay.portal.kernel.util.OrderByComparator;
022 import com.liferay.portal.model.Group;
023 import com.liferay.portal.theme.ThemeDisplay;
024 import com.liferay.portlet.trash.model.TrashEntry;
025
026 import java.util.Date;
027 import java.util.List;
028
029 import javax.portlet.PortletURL;
030
031 import javax.servlet.http.HttpServletRequest;
032
033
036 public interface Trash {
037
038 public static final String TRASH_TIME_SEPARATOR = "_TRASH_TIME_";
039
040 public void addBaseModelBreadcrumbEntries(
041 HttpServletRequest request,
042 LiferayPortletResponse liferayPortletResponse, String className,
043 long classPK, PortletURL containerModelURL)
044 throws PortalException, SystemException;
045
046
051 @Deprecated
052 public void addBaseModelBreadcrumbEntries(
053 HttpServletRequest request, String className, long classPK,
054 PortletURL containerModelURL)
055 throws PortalException, SystemException;
056
057 public void addContainerModelBreadcrumbEntries(
058 HttpServletRequest request,
059 LiferayPortletResponse liferayPortletResponse, String className,
060 long classPK, PortletURL containerModelURL)
061 throws PortalException, SystemException;
062
063
068 @Deprecated
069 public void addContainerModelBreadcrumbEntries(
070 HttpServletRequest request, String className, long classPK,
071 PortletURL containerModelURL)
072 throws PortalException, SystemException;
073
074 public void deleteEntriesAttachments(
075 long companyId, long repositoryId, Date date,
076 String[] attachmentFileNames)
077 throws PortalException, SystemException;
078
079 public List<TrashEntry> getEntries(Hits hits)
080 throws PortalException, SystemException;
081
082 public Group disableTrash(Group group) throws SystemException;
083
084 public OrderByComparator getEntryOrderByComparator(
085 String orderByCol, String orderByType);
086
087 public int getMaxAge(Group group) throws PortalException, SystemException;
088
089 public String getNewName(String oldName, String token);
090
091 public String getNewName(
092 ThemeDisplay themeDisplay, String className, long classPK,
093 String oldName)
094 throws PortalException, SystemException;
095
096 public String getOriginalTitle(String title);
097
098 public String getTrashTime(String title, String separator);
099
100 public String getTrashTitle(long trashEntryId);
101
102 public PortletURL getViewContentURL(
103 HttpServletRequest request, String className, long classPK)
104 throws PortalException, SystemException;
105
106 public boolean isInTrash(String className, long classPK)
107 throws PortalException, SystemException;
108
109 public boolean isTrashEnabled(long groupId)
110 throws PortalException, SystemException;
111
112 }