Class FormUtil
java.lang.Object
fr.paris.lutece.plugins.appointment.modules.solr.service.FormUtil
Utils for the Appointment Form (Item, Url, Uid ...)
- Author:
- Laurent Payen
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic fr.paris.lutece.plugins.search.solr.indexer.SolrItemgetDefaultFormItem(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm) Build and return the default form item for Solrstatic fr.paris.lutece.plugins.search.solr.indexer.SolrItemgetFormItem(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 Solrstatic StringgetFormUid(int nIdForm) Get the form Uidstatic StringgetFormUrl(int nIdForm) Get the form urlstatic booleanisPeriodValidToIndex(int nIdForm, LocalDate stratingDate, LocalDate endingDate) check if the period between the startingDate and endingDate is displayed on the calendar FO
-
Field Details
-
PARAMETER_ID_FORM
- See Also:
-
-
Method Details
-
getFormUid
Get the form Uid- Parameters:
nIdForm- the form id- Returns:
- the form Uid
-
getFormUrl
Get the form url- Parameters:
nIdForm- the form id- Returns:
- the form url
-
getDefaultFormItem
public 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- Parameters:
appointmentForm- the appointment form- Returns:
- the form item
-
getFormItem
public 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- Parameters:
appointmentForm- the Appointment FormlistSlots- the list of the slots of the form- Returns:
- the Form Item
-
isPeriodValidToIndex
public static boolean isPeriodValidToIndex(int nIdForm, LocalDate stratingDate, LocalDate endingDate) check if the period between the startingDate and endingDate is displayed on the calendar FO- Parameters:
nIdForm- the formstratingDate- the starting periodendingDate- the ending period- Returns:
- true if the period between the startingDate and endingDate is displayed on the calendar FO
-