Class DisplayService


  • public final class DisplayService
    extends java.lang.Object
    Service class for the display
    Author:
    Laurent Payen
    • Method Detail

      • fillInDisplayWithAppointmentForm

        public static Display fillInDisplayWithAppointmentForm​(Display display,
                                                               AppointmentFormDTO appointmentForm,
                                                               int nIdForm)
        Fill a display object with the appointment form DTO
        Parameters:
        display - the display object
        appointmentForm - the appointmentform DTO
        nIdForm - the form Id
        Returns:
        the display overload
      • createDisplay

        public static Display createDisplay​(AppointmentFormDTO appointmentForm,
                                            int nIdForm)
        Create a display object from an appointment form DTO
        Parameters:
        appointmentForm - the appointment form DTO
        nIdForm - the form Id
        Returns:
        the display object created
      • saveDisplay

        public static void saveDisplay​(Display display)
        Save a display of a form
        Parameters:
        display - the display to save
      • updateDisplay

        public static Display updateDisplay​(AppointmentFormDTO appointmentForm,
                                            int nIdForm)
        Update a display object with the values of an appointment form DTO
        Parameters:
        appointmentForm - the appointment form DTO
        nIdForm - the form Id
        Returns:
        the display object updated
      • findDisplayWithFormId

        public static Display findDisplayWithFormId​(int nIdForm)
        Find the display of the form
        Parameters:
        nIdForm - the form Id
        Returns:
        the display of the form