com.liferay.portlet.trash.util
Class TrashUtil
java.lang.Object
com.liferay.portlet.trash.util.TrashUtil
public class TrashUtil
- extends Object
|
Method Summary |
static String |
appendTrashNamespace(String title)
|
static String |
appendTrashNamespace(String title,
String separator)
|
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 Trash |
getTrash()
|
static String |
getTrashTime(String title,
String separator)
|
static boolean |
isInTrash(String className,
long classPK)
|
static boolean |
isTrashEnabled(long groupId)
|
static void |
moveAttachmentFromTrash(long companyId,
long repositoryId,
String deletedFileName,
String attachmentsDir)
|
static void |
moveAttachmentFromTrash(long companyId,
long repositoryId,
String deletedFileName,
String attachmentsDir,
String separator)
|
static String |
moveAttachmentToTrash(long companyId,
long repositoryId,
String fileName,
String deletedAttachmentsDir)
|
static String |
moveAttachmentToTrash(long companyId,
long repositoryId,
String fileName,
String deletedAttachmentsDir,
String separator)
|
void |
setTrash(Trash trash)
|
static String |
stripTrashNamespace(String title)
|
static String |
stripTrashNamespace(String title,
String separator)
|
| 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()
appendTrashNamespace
public static String appendTrashNamespace(String title)
appendTrashNamespace
public static String appendTrashNamespace(String title,
String separator)
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)
getTrash
public static Trash getTrash()
getTrashTime
public static String getTrashTime(String title,
String separator)
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
moveAttachmentFromTrash
public static void moveAttachmentFromTrash(long companyId,
long repositoryId,
String deletedFileName,
String attachmentsDir)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
moveAttachmentFromTrash
public static void moveAttachmentFromTrash(long companyId,
long repositoryId,
String deletedFileName,
String attachmentsDir,
String separator)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
moveAttachmentToTrash
public static String moveAttachmentToTrash(long companyId,
long repositoryId,
String fileName,
String deletedAttachmentsDir)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
moveAttachmentToTrash
public static String moveAttachmentToTrash(long companyId,
long repositoryId,
String fileName,
String deletedAttachmentsDir,
String separator)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
stripTrashNamespace
public static String stripTrashNamespace(String title)
stripTrashNamespace
public static String stripTrashNamespace(String title,
String separator)
setTrash
public void setTrash(Trash trash)