public class XMonthlyScheduleSequenceDecorator extends ScheduleSequenceDecorator
Logic wrapper filters dates, to generate schedule for every month, every other month, etc ...
This implementation is very specifically addressed to deal with monthly, quarterly, annually, 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 |
|---|
XMonthlyScheduleSequenceDecorator(ScheduleSequence scheduleSequence,
Integer frequency)
Constructs a WeekScheduleSequence.java.
|
public XMonthlyScheduleSequenceDecorator(ScheduleSequence scheduleSequence, Integer frequency)
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.