Package de.xima.fc.appointment
Class IcalQueryExecutor<Context>
java.lang.Object
de.xima.fc.appointment.IcalQueryExecutor<Context>
- Type Parameters:
- Context- Context for the access object, such as a database session etc.
Executor with the logic for creating iCal files with appointments.
- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
- 
Constructor SummaryConstructorsConstructorDescriptionIcalQueryExecutor(IAppointmentIcalQueryAccessObject<Context> accessObject) Creates a new executor for creating iCal with with appointments.
- 
Method SummaryModifier and TypeMethodDescriptionexecuteQuery(Context ctx, IAppointmentIcalQueryParams params, Instant now) Performs an iCal query and returns an iCal file.executeQuery(Locale locale, AppointmentTemplate template, List<Appointment> appointments, String sourceUrl) Creates an iCal file from the given appointments.
- 
Constructor Details- 
IcalQueryExecutorCreates a new executor for creating iCal with with appointments.- Parameters:
- accessObject- Object for accessing the database.
 
 
- 
- 
Method Details- 
executeQuerypublic IAppointmentIcalQueryResult executeQuery(Context ctx, IAppointmentIcalQueryParams params, Instant now) throws AppointmentIcalException Performs an iCal query and returns an iCal file.- Parameters:
- ctx- Context for the access object.
- params- Parameters for the iCal query.
- now- The current server time.
- Returns:
- The resulting iCal file.
- Throws:
- AppointmentIcalException- When the appointments cold not be loaded.
 
- 
executeQuerypublic IAppointmentIcalQueryResult executeQuery(Locale locale, AppointmentTemplate template, List<Appointment> appointments, String sourceUrl) throws AppointmentIcalException Creates an iCal file from the given appointments.- Parameters:
- locale- Locale to use for localized messages (description etc.)
- template- Template to which the appointments belong.
- appointments- Appointments to include in the iCal file.
- sourceUrl- URL that is echoed back as the source of the iCal file.
- Returns:
- The generated iCal file.
- Throws:
- AppointmentIcalException- When the iCal file could not be created, such as due to a database error.
 
 
-