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.search.Hits;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.model.Group;
022 import com.liferay.portal.theme.ThemeDisplay;
023 import com.liferay.portlet.trash.model.TrashEntry;
024
025 import java.util.Date;
026 import java.util.List;
027
028 import javax.portlet.PortletURL;
029
030 import javax.servlet.http.HttpServletRequest;
031
032
035 public interface Trash {
036
037 public static final String TRASH_TIME_SEPARATOR = "_TRASH_TIME_";
038
039 public void addBaseModelBreadcrumbEntries(
040 HttpServletRequest request, String className, long classPK,
041 PortletURL containerModelURL)
042 throws PortalException, SystemException;
043
044 public void addContainerModelBreadcrumbEntries(
045 HttpServletRequest request, String className, long classPK,
046 PortletURL containerModelURL)
047 throws PortalException, SystemException;
048
049 public void deleteEntriesAttachments(
050 long companyId, long repositoryId, Date date,
051 String[] attachmentFileNames)
052 throws PortalException, SystemException;
053
054 public List<TrashEntry> getEntries(Hits hits)
055 throws PortalException, SystemException;
056
057 public OrderByComparator getEntryOrderByComparator(
058 String orderByCol, String orderByType);
059
060 public int getMaxAge(Group group) throws PortalException, SystemException;
061
062 public String getNewName(ThemeDisplay themeDisplay, String oldName);
063
064 public String getOriginalTitle(String title);
065
066 public String getTrashTime(String title, String separator);
067
068 public String getTrashTitle(long trashEntryId);
069
070 public PortletURL getViewContentURL(
071 HttpServletRequest request, String className, long classPK)
072 throws PortalException, SystemException;
073
074 public boolean isInTrash(String className, long classPK)
075 throws PortalException, SystemException;
076
077 public boolean isTrashEnabled(long groupId)
078 throws PortalException, SystemException;
079
080 }