Liferay 6.2-ce-ga5

com.liferay.portlet.trash.util
Class TrashImpl

java.lang.Object
  extended by com.liferay.portlet.trash.util.TrashImpl
All Implemented Interfaces:
Trash

public class TrashImpl
extends Object
implements Trash


Field Summary
 
Fields inherited from interface com.liferay.portlet.trash.util.Trash
TRASH_TIME_SEPARATOR
 
Constructor Summary
TrashImpl()
           
 
Method Summary
 void addBaseModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request, LiferayPortletResponse liferayPortletResponse, String className, long classPK, PortletURL containerModelURL)
           
 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
protected  void addBreadcrumbEntries(javax.servlet.http.HttpServletRequest request, LiferayPortletResponse liferayPortletResponse, String className, long classPK, String paramName, PortletURL containerModelURL)
           
protected  void addBreadcrumbEntries(javax.servlet.http.HttpServletRequest request, String className, long classPK, String paramName, PortletURL containerModelURL)
          Deprecated. As of 7.0.0, replaced by #addBreadcrumbEntries(HttpServletRequest, LiferayPortletResponse, String, long, String, PortletURL
 void addContainerModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request, LiferayPortletResponse liferayPortletResponse, String className, long classPK, PortletURL containerModelURL)
           
 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
 void deleteEntriesAttachments(long companyId, long repositoryId, Date date, String[] attachmentFileNames)
           
 List<TrashEntry> getEntries(Hits hits)
           
 OrderByComparator 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)
           
protected  String getOriginalTitle(String title, 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, String className, long classPK)
           
 boolean isInTrash(String className, long classPK)
           
 boolean isTrashEnabled(long groupId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrashImpl

public TrashImpl()
Method Detail

addBaseModelBreadcrumbEntries

public void addBaseModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
                                          LiferayPortletResponse liferayPortletResponse,
                                          String className,
                                          long classPK,
                                          PortletURL containerModelURL)
                                   throws PortalException,
                                          SystemException
Specified by:
addBaseModelBreadcrumbEntries in interface Trash
Throws:
PortalException
SystemException

addBaseModelBreadcrumbEntries

@Deprecated
public 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

Specified by:
addBaseModelBreadcrumbEntries in interface Trash
Throws:
PortalException
SystemException

addContainerModelBreadcrumbEntries

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

addContainerModelBreadcrumbEntries

@Deprecated
public 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

Specified by:
addContainerModelBreadcrumbEntries in interface Trash
Throws:
PortalException
SystemException

deleteEntriesAttachments

public void deleteEntriesAttachments(long companyId,
                                     long repositoryId,
                                     Date date,
                                     String[] attachmentFileNames)
                              throws PortalException,
                                     SystemException
Specified by:
deleteEntriesAttachments in interface Trash
Throws:
PortalException
SystemException

getEntries

public List<TrashEntry> getEntries(Hits hits)
Specified by:
getEntries in interface Trash

getEntryOrderByComparator

public OrderByComparator getEntryOrderByComparator(String orderByCol,
                                                   String orderByType)
Specified by:
getEntryOrderByComparator in interface Trash

getMaxAge

public int getMaxAge(Group group)
              throws PortalException,
                     SystemException
Specified by:
getMaxAge in interface Trash
Throws:
PortalException
SystemException

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,
                         SystemException
Specified by:
getNewName in interface Trash
Throws:
PortalException
SystemException

getOriginalTitle

public String getOriginalTitle(String title)
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,
                                    String className,
                                    long classPK)
                             throws PortalException,
                                    SystemException
Specified by:
getViewContentURL in interface Trash
Throws:
PortalException
SystemException

isInTrash

public boolean isInTrash(String className,
                         long classPK)
                  throws PortalException,
                         SystemException
Specified by:
isInTrash in interface Trash
Throws:
PortalException
SystemException

isTrashEnabled

public boolean isTrashEnabled(long groupId)
                       throws PortalException,
                              SystemException
Specified by:
isTrashEnabled in interface Trash
Throws:
PortalException
SystemException

addBreadcrumbEntries

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

Throws:
PortalException
SystemException

addBreadcrumbEntries

protected void addBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
                                    LiferayPortletResponse liferayPortletResponse,
                                    String className,
                                    long classPK,
                                    String paramName,
                                    PortletURL containerModelURL)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getOriginalTitle

protected String getOriginalTitle(String title,
                                  String prefix)

getTrashTitle

protected String getTrashTitle(long trashEntryId,
                               String prefix)

Liferay 6.2-ce-ga5