Class FormRuleService

java.lang.Object
fr.paris.lutece.plugins.appointment.service.FormRuleService

public final class FormRuleService extends Object
Service class for the form rule
Author:
Laurent Payen
  • Method Details

    • fillInFormRule

      public static void fillInFormRule(FormRule formRule, AppointmentFormDTO appointmentForm, int nIdForm)
      Fill the form rule part with the appointment DTO
      Parameters:
      formRule - the Form Rull to fill
      appointmentForm - the AppointmentForm DTO
      nIdForm - the Form Id
    • createFormRule

      public static FormRule createFormRule(AppointmentFormDTO appointmentForm, int nIdForm)
      Create a form rule from an appointment form DTO
      Parameters:
      appointmentForm - the appointmentForm DTO
      nIdForm - the form Id
      Returns:
      the FormRule created
    • saveFormRule

      public static void saveFormRule(FormRule formRule)
      Save a form rule
      Parameters:
      formRule - the form rule to save
    • updateFormRule

      public static FormRule updateFormRule(AppointmentFormDTO appointmentForm, int nIdForm)
      Update a form rule object with the values of an appointmentForm DTO
      Parameters:
      appointmentForm - the apointmentForm DTO
      nIdForm - the form Id
      Returns:
      the Form Rule updated
    • findFormRuleWithFormId

      public static FormRule findFormRuleWithFormId(int nIdForm)
      Find the rules of a form
      Parameters:
      nIdForm - the form Id
      Returns:
      the form rule