com.liferay.portlet.trash.util
Class TrashUtil
java.lang.Object
com.liferay.portlet.trash.util.TrashUtil
public class TrashUtil
- extends Object
|
Method Summary |
static void |
addBaseModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
String className,
long classPK,
PortletURL containerModelURL)
|
static void |
addContainerModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
String className,
long classPK,
PortletURL containerModelURL)
|
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(ThemeDisplay themeDisplay,
String oldName)
|
static String |
getOriginalTitle(String title)
|
static Trash |
getTrash()
|
static String |
getTrashTime(String title,
String separator)
|
static String |
getTrashTitle(long trashEntryId)
|
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 |
TRASH_ATTACHMENTS_DIR
public static final String TRASH_ATTACHMENTS_DIR
- See Also:
- Constant Field Values
TRASH_DEFAULT_VALUE
public static final int TRASH_DEFAULT_VALUE
- See Also:
- Constant Field Values
TRASH_DISABLED
public static final int TRASH_DISABLED
- See Also:
- Constant Field Values
TRASH_DISABLED_BY_DEFAULT
public static final int TRASH_DISABLED_BY_DEFAULT
- See Also:
- Constant Field Values
TRASH_ENABLED
public static final int TRASH_ENABLED
- See Also:
- Constant Field Values
TRASH_ENABLED_BY_DEFAULT
public static final int TRASH_ENABLED_BY_DEFAULT
- See Also:
- Constant Field Values
TRASH_TIME_SEPARATOR
public static final String TRASH_TIME_SEPARATOR
- See Also:
- Constant Field Values
TrashUtil
public TrashUtil()
addBaseModelBreadcrumbEntries
public static void addBaseModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
String className,
long classPK,
PortletURL containerModelURL)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addContainerModelBreadcrumbEntries
public static void addContainerModelBreadcrumbEntries(javax.servlet.http.HttpServletRequest request,
String className,
long classPK,
PortletURL containerModelURL)
throws PortalException,
SystemException
- 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(ThemeDisplay themeDisplay,
String oldName)
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)
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)