Package de.xima.fc.gui.bean.appointment
Class AppointmentTemplateBean
- java.lang.Object
-
- de.xima.fc.gui.bean.appointment.AppointmentTemplateBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class AppointmentTemplateBean extends Object implements Serializable
Bean for the backend menu that lets the user configure the available appointments.- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AppointmentTemplateBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClientTemplateSheetConfig()IGuiColorgetGuiColor(AppointmentTemplate template)StringgetIcalUrl()StringgetIcalUrlGoogle()StringgetIcalUrlHttp()StringgetIcalUrlWebcal()LocalDategetInitialDate()AppointmentTemplateListModelgetModel()StringgetTemplateSheetConfig()voidonDateRemove(String slotId)Callback for the opening hours schedule, when an opening hour was removed.voidonDateSelect(org.primefaces.event.SelectEvent<LocalDateTime> selectEvent)Callback for the opening hours schedule, when an opening hour was selected.voidsave()Saves the currentEntityListModel.getSelected()template model to the database.
-
-
-
Method Detail
-
getClientTemplateSheetConfig
public String getClientTemplateSheetConfig()
- Returns:
- The JSON string with the configuration for the client template closing times sheet.
-
getGuiColor
public IGuiColor getGuiColor(AppointmentTemplate template)
- Parameters:
template- An appointment template from the list of available templates.- Returns:
- The theme color for the given template.
-
getIcalUrl
public String getIcalUrl()
- Returns:
- The relative URL for the ICAL file, using the currently selected appointment template.
-
getIcalUrlGoogle
public String getIcalUrlGoogle()
- Returns:
- The ICAL URL for the Google integration, using the currently selected appointment template.
-
getIcalUrlHttp
public String getIcalUrlHttp()
- Returns:
- The absolute URL for the ICAL file, using the currently selected appointment template.
-
getIcalUrlWebcal
public String getIcalUrlWebcal()
- Returns:
- The ICAL URL for the webcal integration, using the currently selected appointment template.
-
getInitialDate
public LocalDate getInitialDate()
- Returns:
- The initial date newly created opening hours.
-
getModel
public AppointmentTemplateListModel getModel()
- Returns:
- the model
-
getTemplateSheetConfig
public String getTemplateSheetConfig()
- Returns:
- The JSON string with the configuration for the template closing times sheet.
-
onDateRemove
public void onDateRemove(String slotId)
Callback for the opening hours schedule, when an opening hour was removed.- Parameters:
slotId- Slot ID of the removed opening hour.
-
onDateSelect
public void onDateSelect(org.primefaces.event.SelectEvent<LocalDateTime> selectEvent)
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.
-
-