Class SetAppointmentResourceHistoryDAO

java.lang.Object
fr.paris.lutece.plugins.appointment.modules.resource.business.workflow.SetAppointmentResourceHistoryDAO
All Implemented Interfaces:
ISetAppointmentResourceHistoryDAO

@ApplicationScoped public class SetAppointmentResourceHistoryDAO extends Object implements ISetAppointmentResourceHistoryDAO
DAO to manage history of set appointment resource tasks
  • Constructor Details

    • SetAppointmentResourceHistoryDAO

      public SetAppointmentResourceHistoryDAO()
  • Method Details

    • create

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

      public SetAppointmentResourceHistory findByPrimaryKey(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get an history from its primary key
      Specified by:
      findByPrimaryKey in interface ISetAppointmentResourceHistoryDAO
      Parameters:
      nId - The primary key
      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 ISetAppointmentResourceHistoryDAO
      Parameters:
      nIdNotif - The primary key
      plugin - the plugin
    • findByIdHistory

      public List<SetAppointmentResourceHistory> 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 ISetAppointmentResourceHistoryDAO
      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 ISetAppointmentResourceHistoryDAO
      Parameters:
      nIdAppointment - The id of the appointment
      plugin - the plugin