Class AppointmentLinkBuilder
- java.lang.Object
-
- de.xima.fc.placeholder.replacer.appointment.AppointmentLinkBuilder
-
public class AppointmentLinkBuilder extends Object
Builder for creating ical links to calendars. External links are created to the blueprint of https://github.com/InteractionDesignFoundation/add-event-to-calendar-docs- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description AppointmentLinkBuilder(Vorgang formRecord, Appointment appointment, String baseUrl, IReplacerParams replacerParams, EAppointmentLinkType linkType)AppointmentLinkBuilder(Vorgang formRecord, List<Appointment> appointments, String baseUrl, IReplacerParams replacerParams, EAppointmentLinkType linkType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbuild()Builds the calendar linkAppointmentLinkBuilderwithLinkTypes(EAppointmentLinkType linkType)AppointmentLinkBuilderwithLocale(Locale locale)
-
-
-
Constructor Detail
-
AppointmentLinkBuilder
public AppointmentLinkBuilder(Vorgang formRecord, Appointment appointment, String baseUrl, IReplacerParams replacerParams, EAppointmentLinkType linkType)
- Parameters:
formRecord- the form recordappointment- the appointmentbaseUrl- the base url for links to the systemreplacerParams- the replacer parameterslinkType- the typ of link to create
-
AppointmentLinkBuilder
public AppointmentLinkBuilder(Vorgang formRecord, List<Appointment> appointments, String baseUrl, IReplacerParams replacerParams, EAppointmentLinkType linkType)
- Parameters:
formRecord- the form recordappointments- the appointmentsbaseUrl- the base url for links to the systemreplacerParams- the replacer parameterslinkType- the typ of link to create
-
-
Method Detail
-
withLocale
public AppointmentLinkBuilder withLocale(Locale locale)
- Parameters:
locale- the locale to use- Returns:
- the builder
-
withLinkTypes
public AppointmentLinkBuilder withLinkTypes(EAppointmentLinkType linkType)
- Parameters:
linkType- the link type to use- Returns:
- the builder
-
build
public String build()
Builds the calendar link- Returns:
- the calendar link
-
-