Class FormRuleService
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.service.FormRuleService
-
public final class FormRuleService extends java.lang.ObjectService class for the form rule- Author:
- Laurent Payen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
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
public static FormRule createFormRule(AppointmentFormDTO appointmentForm, int nIdForm)
Create a form rule from an appointment form DTO- Parameters:
appointmentForm- the appointmentForm DTOnIdForm- 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 DTOnIdForm- 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
-
-