com.liferay.portlet.trash.util
Class TrashImpl
java.lang.Object
com.liferay.portlet.trash.util.TrashImpl
- All Implemented Interfaces:
- com.liferay.trash.kernel.util.Trash
public class TrashImpl
- extends Object
- implements com.liferay.trash.kernel.util.Trash
Fields inherited from interface com.liferay.trash.kernel.util.Trash |
TRASH_TIME_SEPARATOR |
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRASH_PREFIX
protected final String TRASH_PREFIX
- See Also:
- Constant Field Values
TrashImpl
public TrashImpl()
addBaseModelBreadcrumbEntries
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
- Specified by:
addBaseModelBreadcrumbEntries
in interface com.liferay.trash.kernel.util.Trash
- Throws:
com.liferay.portal.kernel.exception.PortalException
PortletException
addContainerModelBreadcrumbEntries
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
- Specified by:
addContainerModelBreadcrumbEntries
in interface com.liferay.trash.kernel.util.Trash
- Throws:
com.liferay.portal.kernel.exception.PortalException
PortletException
addTrashSessionMessages
public void addTrashSessionMessages(ActionRequest actionRequest,
List<com.liferay.portal.kernel.model.TrashedModel> trashedModels)
- Specified by:
addTrashSessionMessages
in interface com.liferay.trash.kernel.util.Trash
addTrashSessionMessages
public void addTrashSessionMessages(ActionRequest actionRequest,
List<com.liferay.portal.kernel.model.TrashedModel> trashedModels,
String cmd)
- Specified by:
addTrashSessionMessages
in interface com.liferay.trash.kernel.util.Trash
addTrashSessionMessages
public void addTrashSessionMessages(ActionRequest actionRequest,
com.liferay.portal.kernel.model.TrashedModel trashedModel)
- Specified by:
addTrashSessionMessages
in interface com.liferay.trash.kernel.util.Trash
addTrashSessionMessages
public void addTrashSessionMessages(ActionRequest actionRequest,
com.liferay.portal.kernel.model.TrashedModel trashedModel,
String cmd)
- Specified by:
addTrashSessionMessages
in interface com.liferay.trash.kernel.util.Trash
deleteEntriesAttachments
public void deleteEntriesAttachments(long companyId,
long repositoryId,
Date date,
String[] attachmentFileNames)
- Specified by:
deleteEntriesAttachments
in interface com.liferay.trash.kernel.util.Trash
disableTrash
public com.liferay.portal.kernel.model.Group disableTrash(com.liferay.portal.kernel.model.Group group)
- Specified by:
disableTrash
in interface com.liferay.trash.kernel.util.Trash
getEntries
public List<com.liferay.trash.kernel.model.TrashEntry> getEntries(com.liferay.portal.kernel.search.Hits hits)
- Specified by:
getEntries
in interface com.liferay.trash.kernel.util.Trash
getEntryOrderByComparator
public com.liferay.portal.kernel.util.OrderByComparator<com.liferay.trash.kernel.model.TrashEntry> getEntryOrderByComparator(String orderByCol,
String orderByType)
- Specified by:
getEntryOrderByComparator
in interface com.liferay.trash.kernel.util.Trash
getMaxAge
public int getMaxAge(com.liferay.portal.kernel.model.Group group)
- Specified by:
getMaxAge
in interface com.liferay.trash.kernel.util.Trash
getNewName
public String getNewName(String oldName,
String token)
- Specified by:
getNewName
in interface com.liferay.trash.kernel.util.Trash
getNewName
public String getNewName(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
String className,
long classPK,
String oldName)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
getNewName
in interface com.liferay.trash.kernel.util.Trash
- Throws:
com.liferay.portal.kernel.exception.PortalException
getOriginalTitle
public String getOriginalTitle(String title)
- Specified by:
getOriginalTitle
in interface com.liferay.trash.kernel.util.Trash
getOriginalTitle
public String getOriginalTitle(String title,
String paramName)
- Specified by:
getOriginalTitle
in interface com.liferay.trash.kernel.util.Trash
getTrashTime
public String getTrashTime(String title,
String separator)
- Specified by:
getTrashTime
in interface com.liferay.trash.kernel.util.Trash
getTrashTitle
public String getTrashTitle(long trashEntryId)
- Specified by:
getTrashTitle
in interface com.liferay.trash.kernel.util.Trash
getViewContentURL
public PortletURL getViewContentURL(javax.servlet.http.HttpServletRequest request,
long trashEntryId)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
getViewContentURL
in interface com.liferay.trash.kernel.util.Trash
- Throws:
com.liferay.portal.kernel.exception.PortalException
getViewContentURL
public PortletURL getViewContentURL(javax.servlet.http.HttpServletRequest request,
String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
getViewContentURL
in interface com.liferay.trash.kernel.util.Trash
- Throws:
com.liferay.portal.kernel.exception.PortalException
getViewURL
public PortletURL getViewURL(javax.servlet.http.HttpServletRequest request)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
getViewURL
in interface com.liferay.trash.kernel.util.Trash
- Throws:
com.liferay.portal.kernel.exception.PortalException
isInTrash
public boolean isInTrash(String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
isInTrash
in interface com.liferay.trash.kernel.util.Trash
- Throws:
com.liferay.portal.kernel.exception.PortalException
isTrashEnabled
public boolean isTrashEnabled(com.liferay.portal.kernel.model.Group group)
- Specified by:
isTrashEnabled
in interface com.liferay.trash.kernel.util.Trash
isTrashEnabled
public boolean isTrashEnabled(long groupId)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
isTrashEnabled
in interface com.liferay.trash.kernel.util.Trash
- Throws:
com.liferay.portal.kernel.exception.PortalException
isValidTrashTitle
public boolean isValidTrashTitle(String title)
- Specified by:
isValidTrashTitle
in interface com.liferay.trash.kernel.util.Trash
addBreadcrumbEntries
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
PortletException
getOriginalTitle
protected String getOriginalTitle(String title,
String paramName,
String prefix)
getTrashTitle
protected String getTrashTitle(long trashEntryId,
String prefix)
isValidTrashTitle
protected boolean isValidTrashTitle(String title,
String prefix)