public final class FormService extends Object
Modifier and Type | Method and Description |
---|---|
static List<AppointmentFormDTO> |
buildAllActiveAndDisplayedOnPortletAppointmentForm()
Build all the active forms of the database
|
static List<AppointmentFormDTO> |
buildAllActiveAppointmentForm()
Build all the active forms
|
static List<AppointmentFormDTO> |
buildAllAppointmentFormLight()
Build all the appointForm DTO of the database light because the appointFormDTO is only fill in with the form id, the title and if the form is active or
not
|
static AppointmentFormDTO |
buildAppointmentForm(int nIdForm,
int nIdReservationRule,
int nIdWeekDefinition)
Build an appointmentForm DTO
|
static AppointmentFormDTO |
buildAppointmentFormLight(Form form)
Build an appointmentFormDTO light
|
static AppointmentFormDTO |
buildAppointmentFormLight(int nIdForm)
Build an appointmentForm light
|
static int |
copyForm(int nIdForm,
String newNameForCopy)
Make a copy of form, with all its values
|
static int |
createAppointmentForm(AppointmentFormDTO appointmentForm)
Create a form from an appointmentForm DTO
|
static Form |
createForm(AppointmentFormDTO appointmentForm)
Create a form from an appointmentForm DTO
|
static Form |
fillInFormWithAppointmentForm(Form form,
AppointmentFormDTO appointmentForm)
Fill the form object with the values of the appointmentForm DTO
|
static List<Form> |
findAllActiveAndDisplayedOnPortletForms()
Find all the active forms that have to be displayed on portlet in database
|
static List<Form> |
findAllActiveForms()
Find all the active forms in database
|
static List<Form> |
findAllForms()
Find all the forms in the database
|
static fr.paris.lutece.util.ReferenceList |
findAllInReferenceList()
Build a list of all the forms (id, title)
|
static Form |
findFormLightByPrimaryKey(int nIdForm)
find a form by its primary key
|
static List<Form> |
findFormsByTitle(String strTitle)
Find forms by the title
|
static void |
removeForm(int nIdForm)
Remove a Form from the database
|
static Form |
saveForm(Form form)
Save a form in database
|
static void |
updateAdvancedParameters(AppointmentFormDTO appointmentForm,
LocalDate dateOfModification)
Update a form with the new values of an appointmentForm DTO Advanced Parameters (with a date of application) --> new Typical Week
|
static Form |
updateForm(AppointmentFormDTO appointmentForm)
Update a form object with the values of the appointmentForm DTO
|
static Form |
updateForm(Form form)
Update a form
|
static void |
updateGlobalParameters(AppointmentFormDTO appointmentForm)
Update a form with the new values of the Global Parameters of an appointmentForm DTO
|
public static int copyForm(int nIdForm, String newNameForCopy)
nIdForm
- the Form Id to copynewNameForCopy
- the new Name of the copypublic static Form saveForm(Form form)
form
- the form to savepublic static int createAppointmentForm(AppointmentFormDTO appointmentForm)
appointmentForm
- the appointmentForm DTOpublic static void updateGlobalParameters(AppointmentFormDTO appointmentForm)
appointmentForm
- the appointmentForm DTOpublic static void updateAdvancedParameters(AppointmentFormDTO appointmentForm, LocalDate dateOfModification)
appointmentForm
- the appointmentForm DTOdateOfModification
- the date of the updatepublic static List<AppointmentFormDTO> buildAllActiveAppointmentForm()
public static List<AppointmentFormDTO> buildAllAppointmentFormLight()
public static fr.paris.lutece.util.ReferenceList findAllInReferenceList()
public static List<AppointmentFormDTO> buildAllActiveAndDisplayedOnPortletAppointmentForm()
public static AppointmentFormDTO buildAppointmentFormLight(Form form)
form
- the form objectpublic static AppointmentFormDTO buildAppointmentFormLight(int nIdForm)
nIdForm
- the form Idpublic static AppointmentFormDTO buildAppointmentForm(int nIdForm, int nIdReservationRule, int nIdWeekDefinition)
nIdForm
- the Form IdnIdReservationRule
- the Reservation Rule IdnIdWeekDefinition
- the WeekDefinition Idpublic static Form createForm(AppointmentFormDTO appointmentForm)
appointmentForm
- the appointmentForm DTOpublic static Form updateForm(AppointmentFormDTO appointmentForm)
appointmentForm
- the appointmentForm DTOpublic static Form updateForm(Form form)
form
- the formpublic static Form fillInFormWithAppointmentForm(Form form, AppointmentFormDTO appointmentForm)
form
- the form objectappointmentForm
- the appointmentForm DTOpublic static void removeForm(int nIdForm)
nIdForm
- the form id to removepublic static List<Form> findAllForms()
public static List<Form> findAllActiveForms()
public static List<Form> findAllActiveAndDisplayedOnPortletForms()
public static Form findFormLightByPrimaryKey(int nIdForm)
nIdForm
- the form IdCopyright © 2020 City of Paris. All rights reserved.