public final class FormUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAMETER_ID_FORM |
| Modifier and Type | Method and Description |
|---|---|
static fr.paris.lutece.plugins.search.solr.indexer.SolrItem |
getDefaultFormItem(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm)
Build and return the default form item for Solr
|
static fr.paris.lutece.plugins.search.solr.indexer.SolrItem |
getFormItem(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm,
List<fr.paris.lutece.plugins.appointment.business.slot.Slot> listSlots)
Build and return the Form Item for Solr
|
static String |
getFormUid(int nIdForm)
Get the form Uid
|
static String |
getFormUrl(int nIdForm)
Get the form url
|
static boolean |
isPeriodValidToIndex(int nIdForm,
LocalDate stratingDate,
LocalDate endingDate)
check if the period between the startingDate and endingDate is displayed on the calendar FO
|
public static final String PARAMETER_ID_FORM
public static String getFormUid(int nIdForm)
nIdForm - the form idpublic static String getFormUrl(int nIdForm)
nIdForm - the form idpublic static fr.paris.lutece.plugins.search.solr.indexer.SolrItem getDefaultFormItem(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm)
appointmentForm - the appointment formpublic static fr.paris.lutece.plugins.search.solr.indexer.SolrItem getFormItem(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm,
List<fr.paris.lutece.plugins.appointment.business.slot.Slot> listSlots)
appointmentForm - the Appointment FormlistSlots - the list of the slots of the formpublic static boolean isPeriodValidToIndex(int nIdForm,
LocalDate stratingDate,
LocalDate endingDate)
appointmentForm - the formstratingDate - the starting periodendingDate - the ending periodCopyright © 2022 City of Paris. All rights reserved.