Liferay 7.0-ce-b4

com.liferay.portlet.trash.util
Class TrashUtil

java.lang.Object
  extended by com.liferay.portlet.trash.util.TrashUtil

@ProviderType
public class TrashUtil
extends Object


Constructor Summary
TrashUtil()
           
 
Method Summary
static void addBaseModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request, LiferayPortletResponse liferayPortletResponse, String className, long classPK, PortletURL containerModelURL)
           
static void addContainerModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request, LiferayPortletResponse liferayPortletResponse, String className, long classPK, PortletURL containerModelURL)
           
static void addTrashSessionMessages(ActionRequest actionRequest, List<TrashedModel> trashedModels)
           
static void addTrashSessionMessages(ActionRequest actionRequest, List<TrashedModel> trashedModels, String cmd)
           
static void addTrashSessionMessages(ActionRequest actionRequest, TrashedModel trashedModel)
           
static void addTrashSessionMessages(ActionRequest actionRequest, TrashedModel trashedModel, String cmd)
           
static void deleteEntriesAttachments(long companyId, long repositoryId, Date date, String[] attachmentFileNames)
           
static Group disableTrash(Group group)
           
static List<TrashEntry> getEntries(Hits hits)
           
static OrderByComparator<TrashEntry> getEntryOrderByComparator(String orderByCol, String orderByType)
           
static int getMaxAge(Group group)
           
static String getNewName(String oldName, String token)
           
static String getNewName(ThemeDisplay themeDisplay, String className, long classPK, String oldName)
           
static String getOriginalTitle(String title)
           
static String getOriginalTitle(String title, String paramName)
           
static Trash getTrash()
           
static String getTrashTime(String title, String separator)
           
static String getTrashTitle(long trashEntryId)
           
static PortletURL getViewContentURL(javax.servlet.http.HttpServletRequest request, long trashEntryId)
           
static PortletURL getViewContentURL(javax.servlet.http.HttpServletRequest request, String className, long classPK)
           
static PortletURL getViewURL(javax.servlet.http.HttpServletRequest request)
           
static boolean isInTrash(String className, long classPK)
           
static boolean isTrashEnabled(Group group)
           
static boolean isTrashEnabled(long groupId)
           
static boolean isValidTrashTitle(String title)
           
 void setTrash(Trash trash)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrashUtil

public TrashUtil()
Method Detail

addBaseModelBreadcrumbEntries

public static void addBaseModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
                                                 LiferayPortletResponse liferayPortletResponse,
                                                 String className,
                                                 long classPK,
                                                 PortletURL containerModelURL)
                                          throws PortalException,
                                                 PortletException
Throws:
PortalException
PortletException

addContainerModelBreadcrumbEntries

public static void addContainerModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
                                                      LiferayPortletResponse liferayPortletResponse,
                                                      String className,
                                                      long classPK,
                                                      PortletURL containerModelURL)
                                               throws PortalException,
                                                      PortletException
Throws:
PortalException
PortletException

addTrashSessionMessages

public static void addTrashSessionMessages(ActionRequest actionRequest,
                                           List<TrashedModel> trashedModels)

addTrashSessionMessages

public static void addTrashSessionMessages(ActionRequest actionRequest,
                                           List<TrashedModel> trashedModels,
                                           String cmd)

addTrashSessionMessages

public static void addTrashSessionMessages(ActionRequest actionRequest,
                                           TrashedModel trashedModel)

addTrashSessionMessages

public static void addTrashSessionMessages(ActionRequest actionRequest,
                                           TrashedModel trashedModel,
                                           String cmd)

deleteEntriesAttachments

public static void deleteEntriesAttachments(long companyId,
                                            long repositoryId,
                                            Date date,
                                            String[] attachmentFileNames)

disableTrash

public static Group disableTrash(Group group)

getEntries

public static List<TrashEntry> getEntries(Hits hits)
                                   throws PortalException
Throws:
PortalException

getEntryOrderByComparator

public static OrderByComparator<TrashEntry> getEntryOrderByComparator(String orderByCol,
                                                                      String orderByType)

getMaxAge

public static int getMaxAge(Group group)
                     throws PortalException
Throws:
PortalException

getNewName

public static String getNewName(String oldName,
                                String token)

getNewName

public static String getNewName(ThemeDisplay themeDisplay,
                                String className,
                                long classPK,
                                String oldName)
                         throws PortalException
Throws:
PortalException

getOriginalTitle

public static String getOriginalTitle(String title)

getOriginalTitle

public static String getOriginalTitle(String title,
                                      String paramName)

getTrash

public static Trash getTrash()

getTrashTime

public static String getTrashTime(String title,
                                  String separator)

getTrashTitle

public static String getTrashTitle(long trashEntryId)

getViewContentURL

public static PortletURL getViewContentURL(javax.servlet.http.HttpServletRequest request,
                                           long trashEntryId)
                                    throws PortalException
Throws:
PortalException

getViewContentURL

public static PortletURL getViewContentURL(javax.servlet.http.HttpServletRequest request,
                                           String className,
                                           long classPK)
                                    throws PortalException
Throws:
PortalException

getViewURL

public static PortletURL getViewURL(javax.servlet.http.HttpServletRequest request)
                             throws PortalException
Throws:
PortalException

isInTrash

public static boolean isInTrash(String className,
                                long classPK)
                         throws PortalException
Throws:
PortalException

isTrashEnabled

public static boolean isTrashEnabled(Group group)

isTrashEnabled

public static boolean isTrashEnabled(long groupId)
                              throws PortalException
Throws:
PortalException

isValidTrashTitle

public static boolean isValidTrashTitle(String title)

setTrash

public void setTrash(Trash trash)

Liferay 7.0-ce-b4