com.liferay.portlet.trash.util
Class TrashImpl
java.lang.Object
com.liferay.portlet.trash.util.TrashImpl
- All Implemented Interfaces:
- Trash
public class TrashImpl
- extends Object
- implements Trash
|
Method Summary |
String |
appendTrashNamespace(String title)
|
String |
appendTrashNamespace(String title,
String separator)
|
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(ThemeDisplay themeDisplay,
String oldName)
|
String |
getTrashTime(String title,
String separator)
|
boolean |
isInTrash(String className,
long classPK)
|
boolean |
isTrashEnabled(long groupId)
|
void |
moveAttachmentFromTrash(long companyId,
long repositoryId,
String deletedFileName,
String attachmentsDir)
|
void |
moveAttachmentFromTrash(long companyId,
long repositoryId,
String deletedFileName,
String attachmentsDir,
String separator)
|
String |
moveAttachmentToTrash(long companyId,
long repositoryId,
String fileName,
String deletedAttachmentsDir)
|
String |
moveAttachmentToTrash(long companyId,
long repositoryId,
String fileName,
String deletedAttachmentsDir,
String separator)
|
String |
stripTrashNamespace(String title)
|
String |
stripTrashNamespace(String title,
String separator)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrashImpl
public TrashImpl()
appendTrashNamespace
public String appendTrashNamespace(String title)
- Specified by:
appendTrashNamespace in interface Trash
appendTrashNamespace
public String appendTrashNamespace(String title,
String separator)
- Specified by:
appendTrashNamespace in interface Trash
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(ThemeDisplay themeDisplay,
String oldName)
- Specified by:
getNewName in interface Trash
getTrashTime
public String getTrashTime(String title,
String separator)
- Specified by:
getTrashTime in interface Trash
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
moveAttachmentFromTrash
public void moveAttachmentFromTrash(long companyId,
long repositoryId,
String deletedFileName,
String attachmentsDir)
throws PortalException,
SystemException
- Specified by:
moveAttachmentFromTrash in interface Trash
- Throws:
PortalException
SystemException
moveAttachmentFromTrash
public void moveAttachmentFromTrash(long companyId,
long repositoryId,
String deletedFileName,
String attachmentsDir,
String separator)
throws PortalException,
SystemException
- Specified by:
moveAttachmentFromTrash in interface Trash
- Throws:
PortalException
SystemException
moveAttachmentToTrash
public String moveAttachmentToTrash(long companyId,
long repositoryId,
String fileName,
String deletedAttachmentsDir)
throws PortalException,
SystemException
- Specified by:
moveAttachmentToTrash in interface Trash
- Throws:
PortalException
SystemException
moveAttachmentToTrash
public String moveAttachmentToTrash(long companyId,
long repositoryId,
String fileName,
String deletedAttachmentsDir,
String separator)
throws PortalException,
SystemException
- Specified by:
moveAttachmentToTrash in interface Trash
- Throws:
PortalException
SystemException
stripTrashNamespace
public String stripTrashNamespace(String title)
- Specified by:
stripTrashNamespace in interface Trash
stripTrashNamespace
public String stripTrashNamespace(String title,
String separator)
- Specified by:
stripTrashNamespace in interface Trash