Package de.xima.fc.gui.bean.appointment
Class AppointmentTemplateBean
java.lang.Object
de.xima.fc.gui.bean.appointment.AppointmentTemplateBean
- All Implemented Interfaces:
Serializable
Bean for the backend menu that lets the user configure the available appointments.
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGuiColor
(AppointmentTemplate template) getModel()
void
onDateRemove
(String slotId) Callback for the opening hours schedule, when an opening hour was removed.void
onDateSelect
(org.primefaces.event.SelectEvent<LocalDateTime> selectEvent) Callback for the opening hours schedule, when an opening hour was selected.void
save()
Saves the currentEntityListModel.getSelected()
template model to the database.
-
Constructor Details
-
AppointmentTemplateBean
public AppointmentTemplateBean()
-
-
Method Details
-
getClientTemplateSheetConfig
- Returns:
- The JSON string with the configuration for the client template closing times sheet.
-
getGuiColor
- Parameters:
template
- An appointment template from the list of available templates.- Returns:
- The theme color for the given template.
-
getIcalUrl
- Returns:
- The relative URL for the ICAL file, using the currently selected appointment template.
-
getIcalUrlGoogle
- Returns:
- The ICAL URL for the Google integration, using the currently selected appointment template.
-
getIcalUrlHttp
- Returns:
- The absolute URL for the ICAL file, using the currently selected appointment template.
-
getIcalUrlWebcal
- Returns:
- The ICAL URL for the webcal integration, using the currently selected appointment template.
-
getInitialDate
- Returns:
- The initial date newly created opening hours.
-
getModel
- Returns:
- the model
-
getTemplateSheetConfig
- Returns:
- The JSON string with the configuration for the template closing times sheet.
-
onDateRemove
Callback for the opening hours schedule, when an opening hour was removed.- Parameters:
slotId
- Slot ID of the removed opening hour.
-
onDateSelect
Callback for the opening hours schedule, when an opening hour was selected.- Parameters:
selectEvent
- Event with the data containing the selected opening hour slot.
-
save
public void save()Saves the currentEntityListModel.getSelected()
template model to the database.
-