Liferay 6.2-ce-ga5

com.liferay.portlet.trash.util
Class TrashUtil

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

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 addBaseModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request, String className, long classPK, PortletURL containerModelURL)
          Deprecated. As of 7.0.0, replaced by #addBaseModelBreadcrumbEntries(HttpServletRequest, LiferayPortletResponse, String, long, PortletURL
static void addContainerModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request, LiferayPortletResponse liferayPortletResponse, String className, long classPK, PortletURL containerModelURL)
           
static void addContainerModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request, String className, long classPK, PortletURL containerModelURL)
          Deprecated. As of 7.0.0, replaced by #addContainerModelBreadcrumbEntries(HttpServletRequest, LiferayPortletResponse, String, long, PortletURL
static void deleteEntriesAttachments(long companyId, long repositoryId, Date date, String[] attachmentFileNames)
           
static List<TrashEntry> getEntries(Hits hits)
           
static OrderByComparator 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 Trash getTrash()
           
static String getTrashTime(String title, String separator)
           
static String getTrashTitle(long trashEntryId)
           
static PortletURL getViewContentURL(javax.servlet.http.HttpServletRequest request, String className, long classPK)
           
static boolean isInTrash(String className, long classPK)
           
static boolean isTrashEnabled(long groupId)
           
 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,
                                                 SystemException
Throws:
PortalException
SystemException

addBaseModelBreadcrumbEntries

@Deprecated
public static void addBaseModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
                                                            String className,
                                                            long classPK,
                                                            PortletURL containerModelURL)
                                          throws PortalException,
                                                 SystemException
Deprecated. As of 7.0.0, replaced by #addBaseModelBreadcrumbEntries(HttpServletRequest, LiferayPortletResponse, String, long, PortletURL

Throws:
PortalException
SystemException

addContainerModelBreadcrumbEntries

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

addContainerModelBreadcrumbEntries

@Deprecated
public static void addContainerModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
                                                                 String className,
                                                                 long classPK,
                                                                 PortletURL containerModelURL)
                                               throws PortalException,
                                                      SystemException
Deprecated. As of 7.0.0, replaced by #addContainerModelBreadcrumbEntries(HttpServletRequest, LiferayPortletResponse, String, long, PortletURL

Throws:
PortalException
SystemException

deleteEntriesAttachments

public static void deleteEntriesAttachments(long companyId,
                                            long repositoryId,
                                            Date date,
                                            String[] attachmentFileNames)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

getEntries

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

getEntryOrderByComparator

public static OrderByComparator getEntryOrderByComparator(String orderByCol,
                                                          String orderByType)

getMaxAge

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

getNewName

public static String getNewName(String oldName,
                                String token)

getNewName

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

getOriginalTitle

public static String getOriginalTitle(String title)

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,
                                           String className,
                                           long classPK)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

isInTrash

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

isTrashEnabled

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

setTrash

public void setTrash(Trash trash)

Liferay 6.2-ce-ga5