@ProviderType public interface TrashCapability extends Capability
Modifier and Type | Method and Description |
---|---|
void |
deleteFileEntry(FileEntry fileEntry) |
void |
deleteFolder(Folder folder) |
boolean |
isInTrash(FileEntry fileEntry) |
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
PortalException
void deleteFolder(Folder folder) throws PortalException
PortalException
boolean isInTrash(FileEntry fileEntry) throws PortalException
PortalException
boolean isInTrash(Folder folder) throws PortalException
PortalException
FileEntry moveFileEntryFromTrash(long userId, FileEntry fileEntry, Folder newFolder, ServiceContext serviceContext) throws PortalException
PortalException
FileEntry moveFileEntryToTrash(long userId, FileEntry fileEntry) throws PortalException
PortalException
FileShortcut moveFileShortcutFromTrash(long userId, FileShortcut fileShortcut, Folder newFolder, ServiceContext serviceContext) throws PortalException
PortalException
FileShortcut moveFileShortcutToTrash(long userId, FileShortcut fileShortcut) throws PortalException
PortalException
Folder moveFolderFromTrash(long userId, Folder folder, Folder destinationFolder, ServiceContext serviceContext) throws PortalException
PortalException
Folder moveFolderToTrash(long userId, Folder folder) throws PortalException
PortalException
void restoreFileEntryFromTrash(long userId, FileEntry fileEntry) throws PortalException
PortalException
void restoreFileShortcutFromTrash(long userId, FileShortcut fileShortcut) throws PortalException
PortalException
void restoreFolderFromTrash(long userId, Folder folder) throws PortalException
PortalException