Class UploadHistoryService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void create​(int nIdResourceHistory, int nidTask, java.util.List<org.apache.commons.fileupload.FileItem> listFiles, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Creates the.
      UploadHistory 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 Detail

      • UploadHistoryService

        public UploadHistoryService()
    • Method Detail

      • create

        @Transactional("workflow.transactionManager")
        public void create​(int nIdResourceHistory,
                           int nidTask,
                           java.util.List<org.apache.commons.fileupload.FileItem> 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

        @Transactional("workflow.transactionManager")
        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

        @Transactional("workflow.transactionManager")
        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