Liferay 7.0-ce-b4

com.liferay.portlet.documentlibrary.service
Class DLTrashServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.DLTrashServiceWrapper
All Implemented Interfaces:
BaseService, ServiceWrapper<DLTrashService>, DLTrashService

@ProviderType
public class DLTrashServiceWrapper
extends Object
implements DLTrashService, ServiceWrapper<DLTrashService>

Provides a wrapper for DLTrashService.

See Also:
DLTrashService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
DLTrashServiceWrapper(DLTrashService dlTrashService)
           
 
Method Summary
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 DLTrashService getWrappedService()
           
 FileEntry moveFileEntryFromTrash(long fileEntryId, long newFolderId, ServiceContext serviceContext)
          Moves the file entry from a trashed folder to the new folder.
 FileEntry moveFileEntryToTrash(long fileEntryId)
          Moves the file entry with the primary key to the trash portlet.
 FileShortcut moveFileShortcutFromTrash(long fileShortcutId, long newFolderId, ServiceContext serviceContext)
          Moves the file shortcut from a trashed folder to the new folder.
 FileShortcut moveFileShortcutToTrash(long fileShortcutId)
          Moves the file shortcut with the primary key to the trash portlet.
 Folder moveFolderFromTrash(long folderId, long parentFolderId, ServiceContext serviceContext)
          Moves the folder with the primary key from the trash portlet to the new parent folder with the primary key.
 Folder moveFolderToTrash(long folderId)
          Moves the folder with the primary key to the trash portlet.
 void restoreFileEntryFromTrash(long fileEntryId)
          Restores the file entry with the primary key from the trash portlet.
 void restoreFileShortcutFromTrash(long fileShortcutId)
          Restores the file shortcut with the primary key from the trash portlet.
 void restoreFolderFromTrash(long folderId)
          Restores the folder with the primary key from the trash portlet.
 void setWrappedService(DLTrashService dlTrashService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLTrashServiceWrapper

public DLTrashServiceWrapper(DLTrashService dlTrashService)
Method Detail

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface DLTrashService
Returns:
the OSGi service identifier

moveFileEntryFromTrash

public FileEntry moveFileEntryFromTrash(long fileEntryId,
                                        long newFolderId,
                                        ServiceContext serviceContext)
                                 throws PortalException
Moves the file entry from a trashed folder to the new folder.

Specified by:
moveFileEntryFromTrash in interface DLTrashService
Parameters:
fileEntryId - the primary key of the file entry
newFolderId - the primary key of the new folder
serviceContext - the service context to be applied
Returns:
the file entry
Throws:
PortalException

moveFileEntryToTrash

public FileEntry moveFileEntryToTrash(long fileEntryId)
                               throws PortalException
Moves the file entry with the primary key to the trash portlet.

Specified by:
moveFileEntryToTrash in interface DLTrashService
Parameters:
fileEntryId - the primary key of the file entry
Returns:
the file entry
Throws:
PortalException

moveFileShortcutFromTrash

public FileShortcut moveFileShortcutFromTrash(long fileShortcutId,
                                              long newFolderId,
                                              ServiceContext serviceContext)
                                       throws PortalException
Moves the file shortcut from a trashed folder to the new folder.

Specified by:
moveFileShortcutFromTrash in interface DLTrashService
Parameters:
fileShortcutId - the primary key of the file shortcut
newFolderId - the primary key of the new folder
serviceContext - the service context to be applied
Returns:
the file shortcut
Throws:
PortalException

moveFileShortcutToTrash

public FileShortcut moveFileShortcutToTrash(long fileShortcutId)
                                     throws PortalException
Moves the file shortcut with the primary key to the trash portlet.

Specified by:
moveFileShortcutToTrash in interface DLTrashService
Parameters:
fileShortcutId - the primary key of the file shortcut
Returns:
the file shortcut
Throws:
PortalException

moveFolderFromTrash

public Folder moveFolderFromTrash(long folderId,
                                  long parentFolderId,
                                  ServiceContext serviceContext)
                           throws PortalException
Moves the folder with the primary key from the trash portlet to the new parent folder with the primary key.

Specified by:
moveFolderFromTrash in interface DLTrashService
Parameters:
folderId - the primary key of the folder
parentFolderId - the primary key of the new parent folder
serviceContext - the service context to be applied
Returns:
the file entry
Throws:
PortalException

moveFolderToTrash

public Folder moveFolderToTrash(long folderId)
                         throws PortalException
Moves the folder with the primary key to the trash portlet.

Specified by:
moveFolderToTrash in interface DLTrashService
Parameters:
folderId - the primary key of the folder
Returns:
the file entry
Throws:
PortalException

restoreFileEntryFromTrash

public void restoreFileEntryFromTrash(long fileEntryId)
                               throws PortalException
Restores the file entry with the primary key from the trash portlet.

Specified by:
restoreFileEntryFromTrash in interface DLTrashService
Parameters:
fileEntryId - the primary key of the file entry
Throws:
PortalException

restoreFileShortcutFromTrash

public void restoreFileShortcutFromTrash(long fileShortcutId)
                                  throws PortalException
Restores the file shortcut with the primary key from the trash portlet.

Specified by:
restoreFileShortcutFromTrash in interface DLTrashService
Parameters:
fileShortcutId - the primary key of the file shortcut
Throws:
PortalException

restoreFolderFromTrash

public void restoreFolderFromTrash(long folderId)
                            throws PortalException
Restores the folder with the primary key from the trash portlet.

Specified by:
restoreFolderFromTrash in interface DLTrashService
Parameters:
folderId - the primary key of the folder
Throws:
PortalException

getWrappedService

public DLTrashService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<DLTrashService>

setWrappedService

public void setWrappedService(DLTrashService dlTrashService)
Specified by:
setWrappedService in interface ServiceWrapper<DLTrashService>

Liferay 7.0-ce-b4