Interface IAppointmentListener


  • public interface IAppointmentListener
    Interface for listeners that should be notified when appointments are removed or when the date changed. The listener must be a Spring bean.
    Author:
    Laurent Payen
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String appointmentDateChanged​(int nIdAppointment, java.util.List<java.lang.Integer> listIdSlot, java.util.Locale locale)
      Notify the listener that the date of an appointment has changed.
      void notifyAppointmentCreated​(int nIdAppointment)
      Notify the listener that an appointment has been creates
      void notifyAppointmentRemoval​(int nIdAppointment)
      Notify the listener that an appointment has been removed
      void notifyAppointmentUpdated​(int nIdAppointment)
      Notify the listener that an appointment has been update
    • Method Detail

      • notifyAppointmentRemoval

        void notifyAppointmentRemoval​(int nIdAppointment)
        Notify the listener that an appointment has been removed
        Parameters:
        nIdAppointment - The id of the appointment
      • appointmentDateChanged

        java.lang.String appointmentDateChanged​(int nIdAppointment,
                                                java.util.List<java.lang.Integer> listIdSlot,
                                                java.util.Locale locale)
        Notify the listener that the date of an appointment has changed.
        Parameters:
        nIdAppointment - the id of the appointment
        nIdSlot - The new slot of the appointment
        locale - The locale to display error messages with
        Returns:
        The message to display to the user, if any.
      • notifyAppointmentCreated

        void notifyAppointmentCreated​(int nIdAppointment)
        Notify the listener that an appointment has been creates
        Parameters:
        nIdAppointment - The id of the appointment
      • notifyAppointmentUpdated

        void notifyAppointmentUpdated​(int nIdAppointment)
        Notify the listener that an appointment has been update
        Parameters:
        nIdAppointment - The id of the appointment