Interface IUploadHistoryService

  • All Known Implementing Classes:
    UploadHistoryService

    public interface IUploadHistoryService
    The Interface IUploadHistoryService.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BEAN_SERVICE
      The Constant BEAN_SERVICE.
    • Method Summary

      All Methods Instance Methods Abstract 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.
    • Field Detail

      • BEAN_SERVICE

        static final java.lang.String BEAN_SERVICE
        The Constant BEAN_SERVICE.
        See Also:
        Constant Field Values
    • Method Detail

      • create

        @Transactional("workflow.transactionManager")
        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.
        Parameters:
        nIdResourceHistory - the n id resource history
        nidTask - the nid task
        listFiles - the list files
        plugin - the plugin
      • removeByHistory

        @Transactional("workflow.transactionManager")
        void removeByHistory​(int nIdHistory,
                             int nIdTask,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Removes the by history.
        Parameters:
        nIdHistory - the n id history
        nIdTask - the n id task
        plugin - the plugin
      • removeByTask

        @Transactional("workflow.transactionManager")
        void removeByTask​(int nIdTask,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Removes the by task.
        Parameters:
        nIdTask - the n id task
        plugin - the plugin
      • findByPrimaryKey

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

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