Class DLTrashServiceImpl

Object
com.liferay.portal.kernel.service.BaseServiceImpl
com.liferay.portlet.documentlibrary.service.base.DLTrashServiceBaseImpl
com.liferay.portlet.documentlibrary.service.impl.DLTrashServiceImpl
All Implemented Interfaces:
com.liferay.document.library.kernel.service.DLTrashService, com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseService

public class DLTrashServiceImpl extends DLTrashServiceBaseImpl
Author:
Adolfo Pérez
  • Constructor Details

    • DLTrashServiceImpl

      public DLTrashServiceImpl()
  • Method Details

    • moveFileEntryFromTrash

      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
      Moves the file entry from a trashed folder to the new folder.
      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:
      com.liferay.portal.kernel.exception.PortalException
    • moveFileEntryToTrash

      public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryToTrash(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Moves the file entry with the primary key to the trash portlet.
      Parameters:
      fileEntryId - the primary key of the file entry
      Returns:
      the file entry
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveFileShortcutFromTrash

      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
      Moves the file shortcut from a trashed folder to the new folder.
      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:
      com.liferay.portal.kernel.exception.PortalException
    • moveFileShortcutToTrash

      public com.liferay.portal.kernel.repository.model.FileShortcut moveFileShortcutToTrash(long fileShortcutId) throws com.liferay.portal.kernel.exception.PortalException
      Moves the file shortcut with the primary key to the trash portlet.
      Parameters:
      fileShortcutId - the primary key of the file shortcut
      Returns:
      the file shortcut
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveFolderFromTrash

      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
      Moves the folder with the primary key from the trash portlet to the new parent folder with the primary key.
      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:
      com.liferay.portal.kernel.exception.PortalException
    • moveFolderToTrash

      public com.liferay.portal.kernel.repository.model.Folder moveFolderToTrash(long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Moves the folder with the primary key to the trash portlet.
      Parameters:
      folderId - the primary key of the folder
      Returns:
      the file entry
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • restoreFileEntryFromTrash

      public void restoreFileEntryFromTrash(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Restores the file entry with the primary key from the trash portlet.
      Parameters:
      fileEntryId - the primary key of the file entry
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • restoreFileShortcutFromTrash

      public void restoreFileShortcutFromTrash(long fileShortcutId) throws com.liferay.portal.kernel.exception.PortalException
      Restores the file shortcut with the primary key from the trash portlet.
      Parameters:
      fileShortcutId - the primary key of the file shortcut
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • restoreFolderFromTrash

      public void restoreFolderFromTrash(long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Restores the folder with the primary key from the trash portlet.
      Parameters:
      folderId - the primary key of the folder
      Throws:
      com.liferay.portal.kernel.exception.PortalException