Class TaskDAO

    • Constructor Detail

      • TaskDAO

        public TaskDAO()
    • Method Detail

      • insert

        public void insert​(Task task,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
                    throws com.fasterxml.jackson.core.JsonProcessingException
        Specified by:
        insert in interface ITaskDAO
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • update

        public void update​(Task task,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
                    throws com.fasterxml.jackson.core.JsonProcessingException
        Specified by:
        update in interface ITaskDAO
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • updateStatus

        public Timestamp updateStatus​(String taskCode,
                                      TaskStatusType newStatus,
                                      String clientCode,
                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
                               throws com.fasterxml.jackson.core.JsonProcessingException
        Specified by:
        updateStatus in interface ITaskDAO
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • load

        public Task load​(int nIdTask,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
                  throws com.fasterxml.jackson.core.JsonProcessingException
        Specified by:
        load in interface ITaskDAO
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • selectByCode

        public Task selectByCode​(String strCode,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
                          throws com.fasterxml.jackson.core.JsonProcessingException
        Specified by:
        selectByCode in interface ITaskDAO
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • selectExpiredTask

        public List<Task> selectExpiredTask​(String retention,
                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
                                     throws com.fasterxml.jackson.core.JsonProcessingException
        Specified by:
        selectExpiredTask in interface ITaskDAO
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • delete

        public void delete​(int nIdTask,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Specified by:
        delete in interface ITaskDAO
      • search

        public List<Task> search​(String strTaskCode,
                                 String strResourceId,
                                 String strResourceType,
                                 String strTaskType,
                                 Date creationDate,
                                 Date lastUpdatedate,
                                 String strLastUpdateClientCode,
                                 List<TaskStatusType> enumTaskStatus,
                                 Integer nNbDaysSinceCreated,
                                 CreationDateOrdering creationDateOrdering,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
                          throws com.fasterxml.jackson.core.JsonProcessingException
        Specified by:
        search in interface ITaskDAO
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • selectByIdAndResourceType

        public List<Task> selectByIdAndResourceType​(String strResourceId,
                                                    String strResourceType,
                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
                                             throws com.fasterxml.jackson.core.JsonProcessingException
        Specified by:
        selectByIdAndResourceType in interface ITaskDAO
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException