Class DLTrashServiceWrapper
Object
com.liferay.document.library.kernel.service.DLTrashServiceWrapper
- All Implemented Interfaces:
DLTrashService
,BaseService
,ServiceWrapper<DLTrashService>
public class DLTrashServiceWrapper
extends Object
implements DLTrashService, ServiceWrapper<DLTrashService>
Provides a wrapper for
DLTrashService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the OSGi service identifier.moveFileEntryFromTrash
(long fileEntryId, long newFolderId, ServiceContext serviceContext) Moves the file entry from a trashed folder to the new folder.moveFileEntryToTrash
(long fileEntryId) Moves the file entry with the primary key to the trash portlet.moveFileShortcutFromTrash
(long fileShortcutId, long newFolderId, ServiceContext serviceContext) Moves the file shortcut from a trashed folder to the new folder.moveFileShortcutToTrash
(long fileShortcutId) Moves the file shortcut with the primary key to the trash portlet.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.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)
-
Constructor Details
-
DLTrashServiceWrapper
public DLTrashServiceWrapper() -
DLTrashServiceWrapper
-
-
Method Details
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceDLTrashService
- 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 interfaceDLTrashService
- Parameters:
fileEntryId
- the primary key of the file entrynewFolderId
- the primary key of the new folderserviceContext
- the service context to be applied- Returns:
- the file entry
- Throws:
PortalException
-
moveFileEntryToTrash
Moves the file entry with the primary key to the trash portlet.- Specified by:
moveFileEntryToTrash
in interfaceDLTrashService
- 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 interfaceDLTrashService
- Parameters:
fileShortcutId
- the primary key of the file shortcutnewFolderId
- the primary key of the new folderserviceContext
- the service context to be applied- Returns:
- the file shortcut
- Throws:
PortalException
-
moveFileShortcutToTrash
Moves the file shortcut with the primary key to the trash portlet.- Specified by:
moveFileShortcutToTrash
in interfaceDLTrashService
- 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 interfaceDLTrashService
- Parameters:
folderId
- the primary key of the folderparentFolderId
- the primary key of the new parent folderserviceContext
- the service context to be applied- Returns:
- the file entry
- Throws:
PortalException
-
moveFolderToTrash
Moves the folder with the primary key to the trash portlet.- Specified by:
moveFolderToTrash
in interfaceDLTrashService
- Parameters:
folderId
- the primary key of the folder- Returns:
- the file entry
- Throws:
PortalException
-
restoreFileEntryFromTrash
Restores the file entry with the primary key from the trash portlet.- Specified by:
restoreFileEntryFromTrash
in interfaceDLTrashService
- Parameters:
fileEntryId
- the primary key of the file entry- Throws:
PortalException
-
restoreFileShortcutFromTrash
Restores the file shortcut with the primary key from the trash portlet.- Specified by:
restoreFileShortcutFromTrash
in interfaceDLTrashService
- Parameters:
fileShortcutId
- the primary key of the file shortcut- Throws:
PortalException
-
restoreFolderFromTrash
Restores the folder with the primary key from the trash portlet.- Specified by:
restoreFolderFromTrash
in interfaceDLTrashService
- Parameters:
folderId
- the primary key of the folder- Throws:
PortalException
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<DLTrashService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<DLTrashService>
-