public class WeekScheduleSequenceDecorator extends ScheduleSequenceDecorator
This implementation is very specifically addressed to deal with week, biweekly, etc date filtering requirements. Implementation uses org.quartz.TriggerUtils class to generate List of dates from Cron expression.
It uses current time zone, where application is hosted.
Note: Dates used in generating schedule must be wrapped with required time accuracy. e.g. Start Date: 02/01/09 10:10 End Date: 02/05/09 10:10 Generated Dates will be in between 02/01/09 10:10 and 02/05/09 10:10. Any date expected before 02/01/09 10:09 will be ignored. Date 02/01/09 10:00 will be ignored. Any date expected after 02/05/09 10:11 will be ignored. Date 02/05/09 12:00 will be ignored.
scheduleSequenceGROUP, JOBGROUP, JOBNAME, NAME| Constructor and Description |
|---|
WeekScheduleSequenceDecorator(ScheduleSequence scheduleSequence,
Integer frequency,
Integer dayCount)
Constructs a WeekScheduleSequence.java.
|
public WeekScheduleSequenceDecorator(ScheduleSequence scheduleSequence, Integer frequency, Integer dayCount)
frequency - can be weekly, biweekly, etc...dayCount - can be no of days in week meeting is scheduled.public List<Date> executeScheduleSequence(String expression, Date startDate, Date endDate) throws ParseException
ScheduleSequenceParseException - can thrown in case of invalid expression.ScheduleSequence.executeScheduleSequence(java.lang.String, java.util.Date, java.util.Date)Copyright © 2013 The Kuali Foundation. All Rights Reserved.