public class DLTrashServiceImpl extends DLTrashServiceBaseImpl
Modifier and Type | Field and Description |
---|---|
protected com.liferay.portal.kernel.repository.RepositoryProvider |
repositoryProvider |
counterLocalService, dlTrashLocalService, dlTrashService
Constructor and Description |
---|
DLTrashServiceImpl() |
Modifier and Type | Method and Description |
---|---|
com.liferay.portal.kernel.repository.model.FileEntry |
moveFileEntryFromTrash(long fileEntryId,
long newFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Moves the file entry from a trashed folder to the new folder.
|
com.liferay.portal.kernel.repository.model.FileEntry |
moveFileEntryToTrash(long fileEntryId)
Moves the file entry with the primary key to the trash portlet.
|
com.liferay.portal.kernel.repository.model.FileShortcut |
moveFileShortcutFromTrash(long fileShortcutId,
long newFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Moves the file shortcut from a trashed folder to the new folder.
|
com.liferay.portal.kernel.repository.model.FileShortcut |
moveFileShortcutToTrash(long fileShortcutId)
Moves the file shortcut with the primary key to the trash portlet.
|
com.liferay.portal.kernel.repository.model.Folder |
moveFolderFromTrash(long folderId,
long parentFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Moves the folder with the primary key from the trash portlet to the new
parent folder with the primary key.
|
com.liferay.portal.kernel.repository.model.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.
|
afterPropertiesSet, destroy, getCounterLocalService, getDLTrashLocalService, getDLTrashService, getOSGiServiceIdentifier, runSQL, setCounterLocalService, setDLTrashLocalService, setDLTrashService
@BeanReference(type=com.liferay.portal.kernel.repository.RepositoryProvider.class) protected com.liferay.portal.kernel.repository.RepositoryProvider repositoryProvider
public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryFromTrash(long fileEntryId, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
fileEntryId
- the primary key of the file entrynewFolderId
- the primary key of the new folderserviceContext
- the service context to be appliedcom.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryToTrash(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
fileEntryId
- the primary key of the file entrycom.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.repository.model.FileShortcut moveFileShortcutFromTrash(long fileShortcutId, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
fileShortcutId
- the primary key of the file shortcutnewFolderId
- the primary key of the new folderserviceContext
- the service context to be appliedcom.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.repository.model.FileShortcut moveFileShortcutToTrash(long fileShortcutId) throws com.liferay.portal.kernel.exception.PortalException
fileShortcutId
- the primary key of the file shortcutcom.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.repository.model.Folder moveFolderFromTrash(long folderId, long parentFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
folderId
- the primary key of the folderparentFolderId
- the primary key of the new parent folderserviceContext
- the service context to be appliedcom.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.repository.model.Folder moveFolderToTrash(long folderId) throws com.liferay.portal.kernel.exception.PortalException
folderId
- the primary key of the foldercom.liferay.portal.kernel.exception.PortalException
public void restoreFileEntryFromTrash(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
fileEntryId
- the primary key of the file entrycom.liferay.portal.kernel.exception.PortalException
public void restoreFileShortcutFromTrash(long fileShortcutId) throws com.liferay.portal.kernel.exception.PortalException
fileShortcutId
- the primary key of the file shortcutcom.liferay.portal.kernel.exception.PortalException
public void restoreFolderFromTrash(long folderId) throws com.liferay.portal.kernel.exception.PortalException
folderId
- the primary key of the foldercom.liferay.portal.kernel.exception.PortalException