public class TrashImpl
extends Object
implements com.liferay.trash.kernel.util.Trash
Modifier and Type | Field and Description |
---|---|
protected String |
TRASH_PREFIX |
Constructor and Description |
---|
TrashImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addBaseModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse,
String className,
long classPK,
PortletURL containerModelURL) |
protected void |
addBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse,
String className,
long classPK,
String paramName,
PortletURL containerModelURL,
boolean checkInTrashContainers) |
void |
addContainerModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse,
String className,
long classPK,
PortletURL containerModelURL) |
void |
addTrashSessionMessages(ActionRequest actionRequest,
List<com.liferay.portal.kernel.model.TrashedModel> trashedModels) |
void |
addTrashSessionMessages(ActionRequest actionRequest,
List<com.liferay.portal.kernel.model.TrashedModel> trashedModels,
String cmd) |
void |
addTrashSessionMessages(ActionRequest actionRequest,
com.liferay.portal.kernel.model.TrashedModel trashedModel) |
void |
addTrashSessionMessages(ActionRequest actionRequest,
com.liferay.portal.kernel.model.TrashedModel trashedModel,
String cmd) |
void |
deleteEntriesAttachments(long companyId,
long repositoryId,
Date date,
String[] attachmentFileNames) |
com.liferay.portal.kernel.model.Group |
disableTrash(com.liferay.portal.kernel.model.Group group) |
List<com.liferay.trash.kernel.model.TrashEntry> |
getEntries(com.liferay.portal.kernel.search.Hits hits) |
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.trash.kernel.model.TrashEntry> |
getEntryOrderByComparator(String orderByCol,
String orderByType) |
int |
getMaxAge(com.liferay.portal.kernel.model.Group group) |
String |
getNewName(String oldName,
String token) |
String |
getNewName(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
String className,
long classPK,
String oldName) |
String |
getOriginalTitle(String title) |
String |
getOriginalTitle(String title,
String paramName) |
protected String |
getOriginalTitle(String title,
String paramName,
String prefix) |
String |
getTrashTime(String title,
String separator) |
String |
getTrashTitle(long trashEntryId) |
protected String |
getTrashTitle(long trashEntryId,
String prefix) |
PortletURL |
getViewContentURL(javax.servlet.http.HttpServletRequest request,
long trashEntryId) |
PortletURL |
getViewContentURL(javax.servlet.http.HttpServletRequest request,
String className,
long classPK) |
PortletURL |
getViewURL(javax.servlet.http.HttpServletRequest request) |
boolean |
isInTrash(String className,
long classPK) |
boolean |
isTrashEnabled(com.liferay.portal.kernel.model.Group group) |
boolean |
isTrashEnabled(long groupId) |
boolean |
isValidTrashTitle(String title) |
protected boolean |
isValidTrashTitle(String title,
String prefix) |
protected final String TRASH_PREFIX
public void addBaseModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse, String className, long classPK, PortletURL containerModelURL) throws com.liferay.portal.kernel.exception.PortalException, PortletException
addBaseModelBreadcrumbEntries
in interface com.liferay.trash.kernel.util.Trash
com.liferay.portal.kernel.exception.PortalException
PortletException
public void addContainerModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse, String className, long classPK, PortletURL containerModelURL) throws com.liferay.portal.kernel.exception.PortalException, PortletException
addContainerModelBreadcrumbEntries
in interface com.liferay.trash.kernel.util.Trash
com.liferay.portal.kernel.exception.PortalException
PortletException
public void addTrashSessionMessages(ActionRequest actionRequest, List<com.liferay.portal.kernel.model.TrashedModel> trashedModels)
addTrashSessionMessages
in interface com.liferay.trash.kernel.util.Trash
public void addTrashSessionMessages(ActionRequest actionRequest, List<com.liferay.portal.kernel.model.TrashedModel> trashedModels, String cmd)
addTrashSessionMessages
in interface com.liferay.trash.kernel.util.Trash
public void addTrashSessionMessages(ActionRequest actionRequest, com.liferay.portal.kernel.model.TrashedModel trashedModel)
addTrashSessionMessages
in interface com.liferay.trash.kernel.util.Trash
public void addTrashSessionMessages(ActionRequest actionRequest, com.liferay.portal.kernel.model.TrashedModel trashedModel, String cmd)
addTrashSessionMessages
in interface com.liferay.trash.kernel.util.Trash
public void deleteEntriesAttachments(long companyId, long repositoryId, Date date, String[] attachmentFileNames)
deleteEntriesAttachments
in interface com.liferay.trash.kernel.util.Trash
public com.liferay.portal.kernel.model.Group disableTrash(com.liferay.portal.kernel.model.Group group)
disableTrash
in interface com.liferay.trash.kernel.util.Trash
public List<com.liferay.trash.kernel.model.TrashEntry> getEntries(com.liferay.portal.kernel.search.Hits hits)
getEntries
in interface com.liferay.trash.kernel.util.Trash
public com.liferay.portal.kernel.util.OrderByComparator<com.liferay.trash.kernel.model.TrashEntry> getEntryOrderByComparator(String orderByCol, String orderByType)
getEntryOrderByComparator
in interface com.liferay.trash.kernel.util.Trash
public int getMaxAge(com.liferay.portal.kernel.model.Group group)
getMaxAge
in interface com.liferay.trash.kernel.util.Trash
public String getNewName(String oldName, String token)
getNewName
in interface com.liferay.trash.kernel.util.Trash
public String getNewName(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, String className, long classPK, String oldName) throws com.liferay.portal.kernel.exception.PortalException
getNewName
in interface com.liferay.trash.kernel.util.Trash
com.liferay.portal.kernel.exception.PortalException
public String getOriginalTitle(String title)
getOriginalTitle
in interface com.liferay.trash.kernel.util.Trash
public String getOriginalTitle(String title, String paramName)
getOriginalTitle
in interface com.liferay.trash.kernel.util.Trash
public String getTrashTime(String title, String separator)
getTrashTime
in interface com.liferay.trash.kernel.util.Trash
public String getTrashTitle(long trashEntryId)
getTrashTitle
in interface com.liferay.trash.kernel.util.Trash
public PortletURL getViewContentURL(javax.servlet.http.HttpServletRequest request, long trashEntryId) throws com.liferay.portal.kernel.exception.PortalException
getViewContentURL
in interface com.liferay.trash.kernel.util.Trash
com.liferay.portal.kernel.exception.PortalException
public PortletURL getViewContentURL(javax.servlet.http.HttpServletRequest request, String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
getViewContentURL
in interface com.liferay.trash.kernel.util.Trash
com.liferay.portal.kernel.exception.PortalException
public PortletURL getViewURL(javax.servlet.http.HttpServletRequest request) throws com.liferay.portal.kernel.exception.PortalException
getViewURL
in interface com.liferay.trash.kernel.util.Trash
com.liferay.portal.kernel.exception.PortalException
public boolean isInTrash(String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
isInTrash
in interface com.liferay.trash.kernel.util.Trash
com.liferay.portal.kernel.exception.PortalException
public boolean isTrashEnabled(com.liferay.portal.kernel.model.Group group)
isTrashEnabled
in interface com.liferay.trash.kernel.util.Trash
public boolean isTrashEnabled(long groupId) throws com.liferay.portal.kernel.exception.PortalException
isTrashEnabled
in interface com.liferay.trash.kernel.util.Trash
com.liferay.portal.kernel.exception.PortalException
public boolean isValidTrashTitle(String title)
isValidTrashTitle
in interface com.liferay.trash.kernel.util.Trash
protected void addBreadcrumbEntries(javax.servlet.http.HttpServletRequest request, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse, String className, long classPK, String paramName, PortletURL containerModelURL, boolean checkInTrashContainers) throws com.liferay.portal.kernel.exception.PortalException, PortletException
com.liferay.portal.kernel.exception.PortalException
PortletException
protected String getOriginalTitle(String title, String paramName, String prefix)
protected String getTrashTitle(long trashEntryId, String prefix)
protected boolean isValidTrashTitle(String title, String prefix)