Class AppointmentListenerManager
java.lang.Object
fr.paris.lutece.plugins.appointment.service.listeners.AppointmentListenerManager
Manager for appointment listeners
Listeners are started by another thread asynchronously. Currently we have a problem with the propagation of the BDDS transaction when launching a workflow
task that triggers the listener
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidnotifyAppointmentWFActionTriggered(int nIdAppointment, int nIdAction) Notify users that an Notify the listener that an appointment Workflow action has been Triggredstatic voidnotifyListenersAppointmentCreated(int nIdAppointment) Notify listeners that an appointment is about to be creatednotifyListenersAppointmentDateChanged(int nIdAppointment, List<Integer> listIdSlot, Locale locale) Notify listeners that the date of an appointment has been modifiedstatic voidnotifyListenersAppointmentFormRemoval(int nIdAppointmentForm) Notify users that an appointment form has been removedstatic voidnotifyListenersAppointmentRemoval(int nIdAppointment) Notify listeners that an appointment is about to be removedstatic voidnotifyListenersAppointmentUpdated(int nIdAppointment) Notify listeners that an appointment is about to be updated
-
Method Details
-
notifyListenersAppointmentRemoval
public static void notifyListenersAppointmentRemoval(int nIdAppointment) Notify listeners that an appointment is about to be removed- Parameters:
nIdAppointment- The id of the appointment that will be removed
-
notifyListenersAppointmentCreated
public static void notifyListenersAppointmentCreated(int nIdAppointment) Notify listeners that an appointment is about to be created- Parameters:
nIdAppointment- The id of the appointment that will be update
-
notifyListenersAppointmentUpdated
public static void notifyListenersAppointmentUpdated(int nIdAppointment) Notify listeners that an appointment is about to be updated- Parameters:
nIdAppointment- The id of the appointment that will be update
-
notifyListenersAppointmentDateChanged
public static List<String> notifyListenersAppointmentDateChanged(int nIdAppointment, List<Integer> listIdSlot, Locale locale) Notify listeners that the date of an appointment has been modified- Parameters:
nIdAppointment- The id of the appointment that will be removednIdSlot- The id of the slotlocale- The locale- Returns:
- The list of messages to display
-
notifyListenersAppointmentFormRemoval
public static void notifyListenersAppointmentFormRemoval(int nIdAppointmentForm) Notify users that an appointment form has been removed- Parameters:
nIdAppointmentForm- the id of the removed appointment form
-
notifyAppointmentWFActionTriggered
public static void notifyAppointmentWFActionTriggered(int nIdAppointment, int nIdAction) Notify users that an Notify the listener that an appointment Workflow action has been Triggred- Parameters:
nIdAppointment- the id of the appointmentnIdAction- The id of the wf action
-