@AccessControlled @JSONWebService @ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface DLTrashService extends BaseService
DLTrashServiceUtil| Modifier and Type | Method and Description |
|---|---|
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
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.
|
String getOSGiServiceIdentifier()
FileEntry moveFileEntryFromTrash(long fileEntryId, long newFolderId, ServiceContext serviceContext) throws PortalException
fileEntryId - the primary key of the file entrynewFolderId - the primary key of the new folderserviceContext - the service context to be appliedPortalExceptionFileEntry moveFileEntryToTrash(long fileEntryId) throws PortalException
fileEntryId - the primary key of the file entryPortalExceptionFileShortcut moveFileShortcutFromTrash(long fileShortcutId, long newFolderId, ServiceContext serviceContext) throws PortalException
fileShortcutId - the primary key of the file shortcutnewFolderId - the primary key of the new folderserviceContext - the service context to be appliedPortalExceptionFileShortcut moveFileShortcutToTrash(long fileShortcutId) throws PortalException
fileShortcutId - the primary key of the file shortcutPortalExceptionFolder moveFolderFromTrash(long folderId, long parentFolderId, ServiceContext serviceContext) throws PortalException
folderId - the primary key of the folderparentFolderId - the primary key of the new parent folderserviceContext - the service context to be appliedPortalExceptionFolder moveFolderToTrash(long folderId) throws PortalException
folderId - the primary key of the folderPortalExceptionvoid restoreFileEntryFromTrash(long fileEntryId)
throws PortalException
fileEntryId - the primary key of the file entryPortalExceptionvoid restoreFileShortcutFromTrash(long fileShortcutId)
throws PortalException
fileShortcutId - the primary key of the file shortcutPortalExceptionvoid restoreFolderFromTrash(long folderId)
throws PortalException
folderId - the primary key of the folderPortalException