Class UpdateAdminAppointmentHistoryDAO

java.lang.Object
fr.paris.lutece.plugins.workflow.modules.appointment.business.UpdateAdminAppointmentHistoryDAO
All Implemented Interfaces:
IUpdateAdminAppointmentHistoryDAO

@ApplicationScoped @Named("workflow-appointment.manualUpdateAdminAppointmentHistoryDAO") public class UpdateAdminAppointmentHistoryDAO extends Object implements IUpdateAdminAppointmentHistoryDAO
DAO to manage history of update admin appointment tasks
  • Constructor Details

    • UpdateAdminAppointmentHistoryDAO

      public UpdateAdminAppointmentHistoryDAO()
  • Method Details

    • create

      public void create(UpdateAdminAppointmentHistory history, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Create a new update admin appointment history
      Specified by:
      create in interface IUpdateAdminAppointmentHistoryDAO
      Parameters:
      history - The history to insert into the database
      plugin - The plugin
    • findByPrimaryKey

      public UpdateAdminAppointmentHistory findByPrimaryKey(int nIdNotif, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get an update admin appointment history from its primary key
      Specified by:
      findByPrimaryKey in interface IUpdateAdminAppointmentHistoryDAO
      Parameters:
      nIdNotif - The id of the history to get
      plugin - The plugin
      Returns:
      The history
    • delete

      public void delete(int nIdNotif, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove an history from its primary key
      Specified by:
      delete in interface IUpdateAdminAppointmentHistoryDAO
      Parameters:
      nIdNotif - The id of the history
      plugin - the plugin
    • findByIdHistory

      public List<UpdateAdminAppointmentHistory> findByIdHistory(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of history associated with a given history id
      Specified by:
      findByIdHistory in interface IUpdateAdminAppointmentHistoryDAO
      Parameters:
      nIdHistory - The history id
      plugin - The plugin
      Returns:
      the list of history, or an empty list if none was found
    • deleteByIdAppointment

      public void deleteByIdAppointment(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove every history associated with a given appointment
      Specified by:
      deleteByIdAppointment in interface IUpdateAdminAppointmentHistoryDAO
      Parameters:
      nIdAppointment - The id of the appointment
      plugin - the plugin