Liferay 7.0-ce-b4

com.liferay.portal.kernel.repository.capabilities
Interface TrashCapability

All Superinterfaces:
Capability

public interface TrashCapability
extends Capability


Method Summary
 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)
           
 

Method Detail

deleteFileEntry

void deleteFileEntry(FileEntry fileEntry)
                     throws PortalException
Throws:
PortalException

deleteFolder

void deleteFolder(Folder folder)
                  throws PortalException
Throws:
PortalException

isInTrash

boolean isInTrash(Folder folder)
                  throws PortalException
Throws:
PortalException

moveFileEntryFromTrash

FileEntry moveFileEntryFromTrash(long userId,
                                 FileEntry fileEntry,
                                 Folder newFolder,
                                 ServiceContext serviceContext)
                                 throws PortalException
Throws:
PortalException

moveFileEntryToTrash

FileEntry moveFileEntryToTrash(long userId,
                               FileEntry fileEntry)
                               throws PortalException
Throws:
PortalException

moveFileShortcutFromTrash

FileShortcut moveFileShortcutFromTrash(long userId,
                                       FileShortcut fileShortcut,
                                       Folder newFolder,
                                       ServiceContext serviceContext)
                                       throws PortalException
Throws:
PortalException

moveFileShortcutToTrash

FileShortcut moveFileShortcutToTrash(long userId,
                                     FileShortcut fileShortcut)
                                     throws PortalException
Throws:
PortalException

moveFolderFromTrash

Folder moveFolderFromTrash(long userId,
                           Folder folder,
                           Folder destinationFolder,
                           ServiceContext serviceContext)
                           throws PortalException
Throws:
PortalException

moveFolderToTrash

Folder moveFolderToTrash(long userId,
                         Folder folder)
                         throws PortalException
Throws:
PortalException

restoreFileEntryFromTrash

void restoreFileEntryFromTrash(long userId,
                               FileEntry fileEntry)
                               throws PortalException
Throws:
PortalException

restoreFileShortcutFromTrash

void restoreFileShortcutFromTrash(long userId,
                                  FileShortcut fileShortcut)
                                  throws PortalException
Throws:
PortalException

restoreFolderFromTrash

void restoreFolderFromTrash(long userId,
                            Folder folder)
                            throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4