com.liferay.portlet.trash.util
Class TrashImpl
java.lang.Object
com.liferay.portlet.trash.util.TrashImpl
- All Implemented Interfaces:
- Trash
public class TrashImpl
- extends Object
- implements Trash
|
Method Summary |
void |
addBaseModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
LiferayPortletResponse liferayPortletResponse,
String className,
long classPK,
PortletURL containerModelURL)
|
protected void |
addBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
LiferayPortletResponse liferayPortletResponse,
String className,
long classPK,
String paramName,
PortletURL containerModelURL,
boolean checkInTrashContainers)
|
void |
addContainerModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
LiferayPortletResponse liferayPortletResponse,
String className,
long classPK,
PortletURL containerModelURL)
|
void |
addTrashSessionMessages(ActionRequest actionRequest,
List<TrashedModel> trashedModels)
|
void |
addTrashSessionMessages(ActionRequest actionRequest,
List<TrashedModel> trashedModels,
String cmd)
|
void |
addTrashSessionMessages(ActionRequest actionRequest,
TrashedModel trashedModel)
|
void |
addTrashSessionMessages(ActionRequest actionRequest,
TrashedModel trashedModel,
String cmd)
|
void |
deleteEntriesAttachments(long companyId,
long repositoryId,
Date date,
String[] attachmentFileNames)
|
Group |
disableTrash(Group group)
|
List<TrashEntry> |
getEntries(Hits hits)
|
OrderByComparator<TrashEntry> |
getEntryOrderByComparator(String orderByCol,
String orderByType)
|
int |
getMaxAge(Group group)
|
String |
getNewName(String oldName,
String token)
|
String |
getNewName(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(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,
LiferayPortletResponse liferayPortletResponse,
String className,
long classPK,
PortletURL containerModelURL)
throws PortalException,
PortletException
- Specified by:
addBaseModelBreadcrumbEntries in interface Trash
- Throws:
PortalException
PortletException
addContainerModelBreadcrumbEntries
public void addContainerModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
LiferayPortletResponse liferayPortletResponse,
String className,
long classPK,
PortletURL containerModelURL)
throws PortalException,
PortletException
- Specified by:
addContainerModelBreadcrumbEntries in interface Trash
- Throws:
PortalException
PortletException
addTrashSessionMessages
public void addTrashSessionMessages(ActionRequest actionRequest,
List<TrashedModel> trashedModels)
- Specified by:
addTrashSessionMessages in interface Trash
addTrashSessionMessages
public void addTrashSessionMessages(ActionRequest actionRequest,
List<TrashedModel> trashedModels,
String cmd)
- Specified by:
addTrashSessionMessages in interface Trash
addTrashSessionMessages
public void addTrashSessionMessages(ActionRequest actionRequest,
TrashedModel trashedModel)
- Specified by:
addTrashSessionMessages in interface Trash
addTrashSessionMessages
public void addTrashSessionMessages(ActionRequest actionRequest,
TrashedModel trashedModel,
String cmd)
- Specified by:
addTrashSessionMessages in interface Trash
deleteEntriesAttachments
public void deleteEntriesAttachments(long companyId,
long repositoryId,
Date date,
String[] attachmentFileNames)
- Specified by:
deleteEntriesAttachments in interface Trash
disableTrash
public Group disableTrash(Group group)
- Specified by:
disableTrash in interface Trash
getEntries
public List<TrashEntry> getEntries(Hits hits)
- Specified by:
getEntries in interface Trash
getEntryOrderByComparator
public OrderByComparator<TrashEntry> getEntryOrderByComparator(String orderByCol,
String orderByType)
- Specified by:
getEntryOrderByComparator in interface Trash
getMaxAge
public int getMaxAge(Group group)
- Specified by:
getMaxAge in interface Trash
getNewName
public String getNewName(String oldName,
String token)
- Specified by:
getNewName in interface Trash
getNewName
public String getNewName(ThemeDisplay themeDisplay,
String className,
long classPK,
String oldName)
throws PortalException
- Specified by:
getNewName in interface Trash
- Throws:
PortalException
getOriginalTitle
public String getOriginalTitle(String title)
- Specified by:
getOriginalTitle in interface Trash
getOriginalTitle
public String getOriginalTitle(String title,
String paramName)
- Specified by:
getOriginalTitle in interface Trash
getTrashTime
public String getTrashTime(String title,
String separator)
- Specified by:
getTrashTime in interface Trash
getTrashTitle
public String getTrashTitle(long trashEntryId)
- Specified by:
getTrashTitle in interface Trash
getViewContentURL
public PortletURL getViewContentURL(javax.servlet.http.HttpServletRequest request,
long trashEntryId)
throws PortalException
- Specified by:
getViewContentURL in interface Trash
- Throws:
PortalException
getViewContentURL
public PortletURL getViewContentURL(javax.servlet.http.HttpServletRequest request,
String className,
long classPK)
throws PortalException
- Specified by:
getViewContentURL in interface Trash
- Throws:
PortalException
getViewURL
public PortletURL getViewURL(javax.servlet.http.HttpServletRequest request)
throws PortalException
- Specified by:
getViewURL in interface Trash
- Throws:
PortalException
isInTrash
public boolean isInTrash(String className,
long classPK)
throws PortalException
- Specified by:
isInTrash in interface Trash
- Throws:
PortalException
isTrashEnabled
public boolean isTrashEnabled(Group group)
- Specified by:
isTrashEnabled in interface Trash
isTrashEnabled
public boolean isTrashEnabled(long groupId)
throws PortalException
- Specified by:
isTrashEnabled in interface Trash
- Throws:
PortalException
isValidTrashTitle
public boolean isValidTrashTitle(String title)
- Specified by:
isValidTrashTitle in interface Trash
addBreadcrumbEntries
protected void addBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
LiferayPortletResponse liferayPortletResponse,
String className,
long classPK,
String paramName,
PortletURL containerModelURL,
boolean checkInTrashContainers)
throws PortalException,
PortletException
- Throws:
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)