public interface TrashCapability extends Capability
| Modifier and Type | Method and Description |
|---|---|
void |
deleteFileEntry(FileEntry fileEntry) |
void |
deleteFolder(Folder folder) |
boolean |
isInTrash(Folder folder) |
FileEntry |
moveFileEntryFromTrash(long userId,
FileEntry fileEntry,
Folder newFolder,
ServiceContext serviceContext) |
FileEntry |
moveFileEntryToTrash(long userId,
FileEntry fileEntry) |
FileShortcut |
moveFileShortcutFromTrash(long userId,
FileShortcut fileShortcut,
Folder newFolder,
ServiceContext serviceContext) |
FileShortcut |
moveFileShortcutToTrash(long userId,
FileShortcut fileShortcut) |
Folder |
moveFolderFromTrash(long userId,
Folder folder,
Folder destinationFolder,
ServiceContext serviceContext) |
Folder |
moveFolderToTrash(long userId,
Folder folder) |
void |
restoreFileEntryFromTrash(long userId,
FileEntry fileEntry) |
void |
restoreFileShortcutFromTrash(long userId,
FileShortcut fileShortcut) |
void |
restoreFolderFromTrash(long userId,
Folder folder) |
void deleteFileEntry(FileEntry fileEntry) throws PortalException
PortalExceptionvoid deleteFolder(Folder folder) throws PortalException
PortalExceptionboolean isInTrash(Folder folder) throws PortalException
PortalExceptionFileEntry moveFileEntryFromTrash(long userId, FileEntry fileEntry, Folder newFolder, ServiceContext serviceContext) throws PortalException
PortalExceptionFileEntry moveFileEntryToTrash(long userId, FileEntry fileEntry) throws PortalException
PortalExceptionFileShortcut moveFileShortcutFromTrash(long userId, FileShortcut fileShortcut, Folder newFolder, ServiceContext serviceContext) throws PortalException
PortalExceptionFileShortcut moveFileShortcutToTrash(long userId, FileShortcut fileShortcut) throws PortalException
PortalExceptionFolder moveFolderFromTrash(long userId, Folder folder, Folder destinationFolder, ServiceContext serviceContext) throws PortalException
PortalExceptionFolder moveFolderToTrash(long userId, Folder folder) throws PortalException
PortalExceptionvoid restoreFileEntryFromTrash(long userId,
FileEntry fileEntry)
throws PortalException
PortalExceptionvoid restoreFileShortcutFromTrash(long userId,
FileShortcut fileShortcut)
throws PortalException
PortalExceptionvoid restoreFolderFromTrash(long userId,
Folder folder)
throws PortalException
PortalException