Class 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 Detail

      • AppointmentTemplateBean

        public AppointmentTemplateBean()
    • 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.
      • 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.