@Transactional public class ScheduleServiceImpl extends Object implements ScheduleService
| Constructor and Description |
|---|
ScheduleServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<Date> |
getIntervalInDaysScheduledDates(Date startDate,
Date endDate,
Time24HrFmt time,
Integer intervalInDays)
This implementation uses the SimpleTrigger class instead of the CronTrigger class used everywhere else.
|
protected List<Date> |
getScheduledDates(CronExpression expression,
Date startDate,
Date endDate,
Time24HrFmt time,
ScheduleSequence scheduleSequence)
This is helper method, gets appropriate ScheduleSequence in case of null, wraps time accurately and executes schedule
sequence.
|
List<Date> |
getScheduledDates(Date startDate,
Date endDate,
Time24HrFmt time,
CronSpecialChars[] weekdays,
ScheduleSequence scheduleSequence)
This overloaded implementation uses WeekCronExpression targeting weekly types of schedule generation.
|
List<Date> |
getScheduledDates(Date startDate,
Date endDate,
Time24HrFmt time,
CronSpecialChars weekOfMonth,
CronSpecialChars dayOfWeek,
CronSpecialChars month,
Integer frequencyInYear,
ScheduleSequence scheduleSequence)
This overloaded implementation uses YearMonthDayCronExpression targeting yearly types of schedule generation.
|
List<Date> |
getScheduledDates(Date startDate,
Date endDate,
Time24HrFmt time,
CronSpecialChars dayOfWeek,
CronSpecialChars weekOfMonth,
Integer frequencyInMonth,
ScheduleSequence scheduleSequence)
This overloaded implementation uses MonthDayCronExpression targeting monthly types of schedule generation.
|
List<Date> |
getScheduledDates(Date startDate,
Date endDate,
Time24HrFmt time,
CronSpecialChars month,
Integer day,
Integer frequencyInYear,
ScheduleSequence scheduleSequence)
This overloaded implementation uses YearMonthDayCronExpression targeting yearly types of schedule generation.
|
List<Date> |
getScheduledDates(Date startDate,
Date endDate,
Time24HrFmt time,
Integer day,
Integer frequencyInMonth,
ScheduleSequence scheduleSequence)
This overloaded implementation uses MonthDayCronExpression targeting monthly types of schedule generation.
|
List<Date> |
getScheduledDates(Date startDate,
Date endDate,
Time24HrFmt time,
Integer frequencyInDay,
ScheduleSequence scheduleSequence)
This overloaded implementation uses DayCronExpression targeting daily types of schedule generation.
|
List<Date> |
getScheduledDates(Date startDate,
Date endDate,
Time24HrFmt time,
ScheduleSequence scheduleSequence)
This overloaded implementation uses NeverCronExpression, which generates schedule for specific DAY only.
|
List<Date> |
getScheduledDates(Date startDate,
Date endDate,
Time24HrFmt time,
ScheduleSequence scheduleSequence,
Integer dayOfMonth)
This overloaded implementation uses MonthDayMultipleYearsCronExpression targeting monthly types of schedule generation.
|
protected ScheduleSequence |
getScheduleSequence(ScheduleSequence scheduleSequence)
This is helper method, if ScheduleSequence passed is null it will construct new DefaultScheduleSequence.
|
protected Date |
wrapTime(Date date,
Time24HrFmt time)
This is helper method, wraps date with time accurately in java.util.Date (milliseconds).
|
public List<Date> getScheduledDates(Date startDate, Date endDate, Time24HrFmt time, ScheduleSequence scheduleSequence) throws ParseException
getScheduledDates in interface ScheduleServicestartDate - is begin date.endDate - is end date.time - is time.scheduleSequence - to used for generating sequence. If value passed is null, DefaultScheduleSequnce will be used.ParseExceptionorg.kuali.kra.scheduling.service.impl.ScheduleService#getScheduledDates(java.util.Date, java.util.Date,
org.kuali.kra.scheduling.util.Time24HrFmt, org.kuali.kra.scheduling.sequence.ScheduleSequence)public List<Date> getScheduledDates(Date startDate, Date endDate, Time24HrFmt time, Integer frequencyInDay, ScheduleSequence scheduleSequence) throws ParseException
getScheduledDates in interface ScheduleServicestartDate - is begin date.endDate - is end date.time - is time.scheduleSequence - to used for generating sequence. If value passed is null, DefaultScheduleSequnce will be used.ParseExceptionorg.kuali.kra.scheduling.service.impl.ScheduleService#getScheduledDates(java.util.Date, java.util.Date,
org.kuali.kra.scheduling.util.Time24HrFmt, java.lang.Integer, org.kuali.kra.scheduling.sequence.ScheduleSequence)public List<Date> getScheduledDates(Date startDate, Date endDate, Time24HrFmt time, CronSpecialChars[] weekdays, ScheduleSequence scheduleSequence) throws ParseException
getScheduledDates in interface ScheduleServicestartDate - is begin date.endDate - is end date.time - is time.weekdays - is array of CronSpecialChars containing week day values.scheduleSequence - to used for generating sequence. If value passed is null, DefaultScheduleSequnce will be used.ParseExceptionorg.kuali.kra.scheduling.service.impl.ScheduleService#getScheduledDates(java.util.Date, java.util.Date,
org.kuali.kra.scheduling.util.Time24HrFmt, org.kuali.kra.scheduling.expr.util.CronSpecialChars[],
org.kuali.kra.scheduling.sequence.ScheduleSequence)public List<Date> getScheduledDates(Date startDate, Date endDate, Time24HrFmt time, Integer day, Integer frequencyInMonth, ScheduleSequence scheduleSequence) throws ParseException
getScheduledDates in interface ScheduleServicestartDate - is begin date.endDate - is end date.time - is time.day - is day of month.scheduleSequence - to used for generating sequence. If value passed is null, DefaultScheduleSequnce will be used.ParseExceptionorg.kuali.kra.scheduling.service.impl.ScheduleService#getScheduledDates(java.util.Date, java.util.Date,
org.kuali.kra.scheduling.util.Time24HrFmt, java.lang.Integer, java.lang.Integer,
org.kuali.kra.scheduling.sequence.ScheduleSequence)public List<Date> getScheduledDates(Date startDate, Date endDate, Time24HrFmt time, ScheduleSequence scheduleSequence, Integer dayOfMonth) throws ParseException
getScheduledDates in interface ScheduleServicestartDate - is begin date.endDate - is end date.time - is time.scheduleSequence - to used for generating sequence. If value passed is null, DefaultScheduleSequnce will be used.ParseExceptionScheduleService.getScheduledDates(java.util.Date, java.util.Date,
org.kuali.kra.scheduling.util.Time24HrFmt, org.kuali.kra.scheduling.sequence.ScheduleSequence, java.lang.Integer)public List<Date> getScheduledDates(Date startDate, Date endDate, Time24HrFmt time, CronSpecialChars dayOfWeek, CronSpecialChars weekOfMonth, Integer frequencyInMonth, ScheduleSequence scheduleSequence) throws ParseException
getScheduledDates in interface ScheduleServicestartDate - is begin date.endDate - is end date.time - is time.dayOfWeek - is CronSpecialChars defining day of week.weekOfMonth - is CronSpecialChars defining week of month.scheduleSequence - to used for generating sequence. If value passed is null, DefaultScheduleSequnce will be used.ParseExceptionorg.kuali.kra.scheduling.service.impl.ScheduleService#getScheduledDates(java.util.Date, java.util.Date,
org.kuali.kra.scheduling.util.Time24HrFmt, org.kuali.kra.scheduling.expr.util.CronSpecialChars,
org.kuali.kra.scheduling.expr.util.CronSpecialChars, java.lang.Integer,
org.kuali.kra.scheduling.sequence.ScheduleSequence)public List<Date> getScheduledDates(Date startDate, Date endDate, Time24HrFmt time, CronSpecialChars month, Integer day, Integer frequencyInYear, ScheduleSequence scheduleSequence) throws ParseException
getScheduledDates in interface ScheduleServicestartDate - is begin date.endDate - is end date.time - is time.month - is CronSpecialChars defining month.day - is day of month.scheduleSequence - to used for generating sequence. If value passed is null, DefaultScheduleSequnce will be used.ParseExceptionorg.kuali.kra.scheduling.service.impl.ScheduleService#getScheduledDates(java.util.Date, java.util.Date,
org.kuali.kra.scheduling.util.Time24HrFmt, org.kuali.kra.scheduling.expr.util.CronSpecialChars, java.lang.Integer,
java.lang.Integer, org.kuali.kra.scheduling.sequence.ScheduleSequence)public List<Date> getScheduledDates(Date startDate, Date endDate, Time24HrFmt time, CronSpecialChars weekOfMonth, CronSpecialChars dayOfWeek, CronSpecialChars month, Integer frequencyInYear, ScheduleSequence scheduleSequence) throws ParseException
getScheduledDates in interface ScheduleServicestartDate - is begin date.endDate - is end date.time - is time.weekOfMonth - is CronSpecialChars defining week of month.dayOfWeek - is CronSpecialChars defining day of week.month - is CronSpecialChars defining month.scheduleSequence - to used for generating sequence. If value passed is null, DefaultScheduleSequnce will be used.ParseExceptionorg.kuali.kra.scheduling.service.impl.ScheduleService#getScheduledDates(java.util.Date, java.util.Date,
org.kuali.kra.scheduling.util.Time24HrFmt, org.kuali.kra.scheduling.expr.util.CronSpecialChars,
org.kuali.kra.scheduling.expr.util.CronSpecialChars, org.kuali.kra.scheduling.expr.util.CronSpecialChars,
java.lang.Integer, org.kuali.kra.scheduling.sequence.ScheduleSequence)protected List<Date> getScheduledDates(CronExpression expression, Date startDate, Date endDate, Time24HrFmt time, ScheduleSequence scheduleSequence) throws ParseException
expression - expects valid cron expression.startDate - is begin date of sequence.endDate - is end date of sequence.time - at which schedule is held.scheduleSequence - executes schedule sequence based on implementation of the ScheduleSequence.ParseExceptionprotected Date wrapTime(Date date, Time24HrFmt time)
date - to be wrapped.time - to be added to date.protected ScheduleSequence getScheduleSequence(ScheduleSequence scheduleSequence)
scheduleSequence - public List<Date> getIntervalInDaysScheduledDates(Date startDate, Date endDate, Time24HrFmt time, Integer intervalInDays) throws ParseException
getIntervalInDaysScheduledDates in interface ScheduleServicestartDate - is begin date.endDate - is end date.time - is time.intervalInDays - is the number of days in each repeating intervalParseExceptionScheduleService.getIntervalInDaysScheduledDates(java.util.Date, java.util.Date,
org.kuali.kra.scheduling.util.Time24HrFmt, java.lang.Integer)Copyright © 2013 The Kuali Foundation. All Rights Reserved.