Liferay 7.0-ce-b4

com.liferay.portal.repository.capabilities
Class LiferayTrashCapability

java.lang.Object
  extended by com.liferay.portal.repository.capabilities.LiferayTrashCapability
All Implemented Interfaces:
Capability, TrashCapability, RepositoryEventAware

public class LiferayTrashCapability
extends Object
implements RepositoryEventAware, TrashCapability


Constructor Summary
LiferayTrashCapability(DLAppHelperLocalService dlAppHelperLocalService, DLAppServiceAdapter dlAppServiceAdapter, DLFileEntryServiceAdapter dlFileEntryServiceAdapter, DLFolderServiceAdapter dlFolderServiceAdapter, RepositoryServiceAdapter repositoryServiceAdapter, TrashEntryLocalService trashEntryLocalService, TrashVersionLocalService trashVersionLocalService)
           
 
Method Summary
 void deleteFileEntry(FileEntry fileEntry)
           
 void deleteFolder(Folder folder)
           
protected  void deleteRepositoryTrashEntries(long repositoryId, String className)
           
protected  void deleteTrashEntries(long repositoryId)
           
protected  void deleteTrashEntries(long groupId, long dlFolderId)
           
protected  void deleteTrashEntry(DLFileEntry dlFileEntry)
           
protected  void deleteTrashEntry(DLFolder dlFolder)
           
protected  void deleteTrashEntry(FileEntry fileEntry)
           
protected  void deleteTrashEntry(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 registerRepositoryEventListeners(RepositoryEventRegistry repositoryEventRegistry)
           
 void restoreFileEntryFromTrash(long userId, FileEntry fileEntry)
           
 void restoreFileShortcutFromTrash(long userId, FileShortcut fileShortcut)
           
 void restoreFolderFromTrash(long userId, Folder folder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiferayTrashCapability

public LiferayTrashCapability(DLAppHelperLocalService dlAppHelperLocalService,
                              DLAppServiceAdapter dlAppServiceAdapter,
                              DLFileEntryServiceAdapter dlFileEntryServiceAdapter,
                              DLFolderServiceAdapter dlFolderServiceAdapter,
                              RepositoryServiceAdapter repositoryServiceAdapter,
                              TrashEntryLocalService trashEntryLocalService,
                              TrashVersionLocalService trashVersionLocalService)
Method Detail

deleteFileEntry

public void deleteFileEntry(FileEntry fileEntry)
                     throws PortalException
Specified by:
deleteFileEntry in interface TrashCapability
Throws:
PortalException

deleteFolder

public void deleteFolder(Folder folder)
                  throws PortalException
Specified by:
deleteFolder in interface TrashCapability
Throws:
PortalException

isInTrash

public boolean isInTrash(Folder folder)
Specified by:
isInTrash in interface TrashCapability

moveFileEntryFromTrash

public FileEntry moveFileEntryFromTrash(long userId,
                                        FileEntry fileEntry,
                                        Folder newFolder,
                                        ServiceContext serviceContext)
                                 throws PortalException
Specified by:
moveFileEntryFromTrash in interface TrashCapability
Throws:
PortalException

moveFileEntryToTrash

public FileEntry moveFileEntryToTrash(long userId,
                                      FileEntry fileEntry)
                               throws PortalException
Specified by:
moveFileEntryToTrash in interface TrashCapability
Throws:
PortalException

moveFileShortcutFromTrash

public FileShortcut moveFileShortcutFromTrash(long userId,
                                              FileShortcut fileShortcut,
                                              Folder newFolder,
                                              ServiceContext serviceContext)
                                       throws PortalException
Specified by:
moveFileShortcutFromTrash in interface TrashCapability
Throws:
PortalException

moveFileShortcutToTrash

public FileShortcut moveFileShortcutToTrash(long userId,
                                            FileShortcut fileShortcut)
                                     throws PortalException
Specified by:
moveFileShortcutToTrash in interface TrashCapability
Throws:
PortalException

moveFolderFromTrash

public Folder moveFolderFromTrash(long userId,
                                  Folder folder,
                                  Folder destinationFolder,
                                  ServiceContext serviceContext)
                           throws PortalException
Specified by:
moveFolderFromTrash in interface TrashCapability
Throws:
PortalException

moveFolderToTrash

public Folder moveFolderToTrash(long userId,
                                Folder folder)
                         throws PortalException
Specified by:
moveFolderToTrash in interface TrashCapability
Throws:
PortalException

registerRepositoryEventListeners

public void registerRepositoryEventListeners(RepositoryEventRegistry repositoryEventRegistry)
Specified by:
registerRepositoryEventListeners in interface RepositoryEventAware

restoreFileEntryFromTrash

public void restoreFileEntryFromTrash(long userId,
                                      FileEntry fileEntry)
                               throws PortalException
Specified by:
restoreFileEntryFromTrash in interface TrashCapability
Throws:
PortalException

restoreFileShortcutFromTrash

public void restoreFileShortcutFromTrash(long userId,
                                         FileShortcut fileShortcut)
                                  throws PortalException
Specified by:
restoreFileShortcutFromTrash in interface TrashCapability
Throws:
PortalException

restoreFolderFromTrash

public void restoreFolderFromTrash(long userId,
                                   Folder folder)
                            throws PortalException
Specified by:
restoreFolderFromTrash in interface TrashCapability
Throws:
PortalException

deleteRepositoryTrashEntries

protected void deleteRepositoryTrashEntries(long repositoryId,
                                            String className)

deleteTrashEntries

protected void deleteTrashEntries(long repositoryId)
                           throws PortalException
Throws:
PortalException

deleteTrashEntries

protected void deleteTrashEntries(long groupId,
                                  long dlFolderId)
                           throws PortalException
Throws:
PortalException

deleteTrashEntry

protected void deleteTrashEntry(DLFileEntry dlFileEntry)

deleteTrashEntry

protected void deleteTrashEntry(DLFolder dlFolder)

deleteTrashEntry

protected void deleteTrashEntry(FileEntry fileEntry)

deleteTrashEntry

protected void deleteTrashEntry(Folder folder)

Liferay 7.0-ce-b4