Class UploadHistoryService

java.lang.Object
fr.paris.lutece.plugins.workflow.modules.upload.services.UploadHistoryService
All Implemented Interfaces:
IUploadHistoryService

@ApplicationScoped public class UploadHistoryService extends Object implements IUploadHistoryService
The Class UploadHistoryService.
  • Field Summary

    Fields inherited from interface fr.paris.lutece.plugins.workflow.modules.upload.services.IUploadHistoryService

    BEAN_SERVICE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    create(int nIdResourceHistory, int nidTask, List<fr.paris.lutece.portal.service.upload.MultipartItem> listFiles, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Creates the.
    findByPrimaryKey(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find by primary key.
    boolean
    isOwner(int nIdHistory, fr.paris.lutece.portal.business.user.AdminUser adminUser)
    Checks if is owner.
    void
    removeByHistory(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Removes the by history.
    void
    removeByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Removes the by task.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UploadHistoryService

      public UploadHistoryService()
  • Method Details

    • create

      public void create(int nIdResourceHistory, int nidTask, List<fr.paris.lutece.portal.service.upload.MultipartItem> listFiles, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Creates the.
      Specified by:
      create in interface IUploadHistoryService
      Parameters:
      nIdResourceHistory - the n id resource history
      nidTask - the nid task
      listFiles - the list files
      plugin - the plugin
    • removeByHistory

      public void removeByHistory(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Removes the by history.
      Specified by:
      removeByHistory in interface IUploadHistoryService
      Parameters:
      nIdHistory - the n id history
      nIdTask - the n id task
      plugin - the plugin
    • removeByTask

      public void removeByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Removes the by task.
      Specified by:
      removeByTask in interface IUploadHistoryService
      Parameters:
      nIdTask - the n id task
      plugin - the plugin
    • findByPrimaryKey

      public UploadHistory findByPrimaryKey(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find by primary key.
      Specified by:
      findByPrimaryKey in interface IUploadHistoryService
      Parameters:
      nIdHistory - the n id history
      nIdTask - the n id task
      plugin - the plugin
      Returns:
      the upload history
    • isOwner

      public boolean isOwner(int nIdHistory, fr.paris.lutece.portal.business.user.AdminUser adminUser)
      Checks if is owner.
      Specified by:
      isOwner in interface IUploadHistoryService
      Parameters:
      nIdHistory - the n id history
      adminUser - the admin user
      Returns:
      true, if is owner