Class FormRuleService
java.lang.Object
fr.paris.lutece.plugins.appointment.service.FormRuleService
Service class for the form rule
- Author:
- Laurent Payen
-
Method Summary
Modifier and TypeMethodDescriptionstatic FormRulecreateFormRule(AppointmentFormDTO appointmentForm, int nIdForm) Create a form rule from an appointment form DTOstatic voidfillInFormRule(FormRule formRule, AppointmentFormDTO appointmentForm, int nIdForm) Fill the form rule part with the appointment DTOstatic FormRulefindFormRuleWithFormId(int nIdForm) Find the rules of a formstatic voidsaveFormRule(FormRule formRule) Save a form rulestatic FormRuleupdateFormRule(AppointmentFormDTO appointmentForm, int nIdForm) Update a form rule object with the values of an appointmentForm DTO
-
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 fillappointmentForm- the AppointmentForm DTOnIdForm- the Form Id
-
createFormRule
Create a form rule from an appointment form DTO- Parameters:
appointmentForm- the appointmentForm DTOnIdForm- the form Id- Returns:
- the FormRule created
-
saveFormRule
Save a form rule- Parameters:
formRule- the form rule to save
-
updateFormRule
Update a form rule object with the values of an appointmentForm DTO- Parameters:
appointmentForm- the apointmentForm DTOnIdForm- the form Id- Returns:
- the Form Rule updated
-
findFormRuleWithFormId
Find the rules of a form- Parameters:
nIdForm- the form Id- Returns:
- the form rule
-