Class TaskAntsAppointmentHistoryService

java.lang.Object
fr.paris.lutece.plugins.workflow.modules.appointmentants.service.history.TaskAntsAppointmentHistoryService
All Implemented Interfaces:
ITaskAntsAppointmentHistoryService

@ApplicationScoped @Named("workflow-appointmentants.taskAntsAppointmentHistoryService") public class TaskAntsAppointmentHistoryService extends Object implements ITaskAntsAppointmentHistoryService
Class containing methods to handle the history of the ANTS related tasks
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    create(TaskAntsAppointmentHistory history, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Create a new entry in the ANTS task's history table
    findByPrimaryKey(int idHistory, int idTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find the data that matches the specified parameters, from the ANTS task's history table
    void
    removeByHistory(int idHistory, int idTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove the ANTS task's history associated with the history and task specified in parameters
    void
    removeByTask(int idTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove the ANTS task's history associated with the task specified in parameters

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • TaskAntsAppointmentHistoryService

      public TaskAntsAppointmentHistoryService()
  • Method Details

    • create

      public void create(TaskAntsAppointmentHistory history, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Create a new entry in the ANTS task's history table
      Specified by:
      create in interface ITaskAntsAppointmentHistoryService
      Parameters:
      history - TaskAntsAppointmentHistory object to insert
      plugin - The Plugin
    • removeByHistory

      public void removeByHistory(int idHistory, int idTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove the ANTS task's history associated with the history and task specified in parameters
      Specified by:
      removeByHistory in interface ITaskAntsAppointmentHistoryService
      Parameters:
      idHistory - ID of the resource history used for the task
      idTask - ID of the task
      plugin - The Plugin
    • removeByTask

      public void removeByTask(int idTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove the ANTS task's history associated with the task specified in parameters
      Specified by:
      removeByTask in interface ITaskAntsAppointmentHistoryService
      Parameters:
      idTask - ID of the task
      plugin - The Plugin
    • findByPrimaryKey

      public TaskAntsAppointmentHistory findByPrimaryKey(int idHistory, int idTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find the data that matches the specified parameters, from the ANTS task's history table
      Specified by:
      findByPrimaryKey in interface ITaskAntsAppointmentHistoryService
      Parameters:
      idHistory - ID of the resource history used for the task
      idTask - ID of the task
      plugin - The Plugin
      Returns:
      The TaskAntsAppointmentHistory object matching the parameters, or null if none was found