public interface CronExpressionService
| Modifier and Type | Method and Description |
|---|---|
String |
createConFromDaysOfMonth(List<Integer> daysOfMonth,
java.time.LocalTime time)
Create con from days of month.
|
String |
createCronFromDaysOfWeek(List<java.time.DayOfWeek> daysOfWeek,
java.time.LocalTime time)
Create cron from days of week.
|
String |
getHumanReadableDescription(String cron,
Locale locale)
Gets human readable description.
|
Date |
getNextExecution(String cron,
Date lastExecution)
Get the next execution.
|
boolean |
isTimeToExecute(String cron,
Date lastExecution)
Get the next execution.
|
boolean |
isTimeToExecute(String cron,
Date lastExecution,
com.atlassian.jira.user.ApplicationUser user)
Get the next execution based on the timezone of the user
|
boolean |
isValidCronExpression(String cron)
Is valid cron expression boolean.
|
String createCronFromDaysOfWeek(List<java.time.DayOfWeek> daysOfWeek, java.time.LocalTime time)
daysOfWeek - the days of weektime - the timeString createConFromDaysOfMonth(List<Integer> daysOfMonth, java.time.LocalTime time)
daysOfMonth - the days of monthtime - the timeString getHumanReadableDescription(String cron, Locale locale)
cron - the cronlocale - the localeboolean isValidCronExpression(String cron)
cron - the cronDate getNextExecution(String cron, Date lastExecution)
cron - the cronlastExecution - the last execution dateboolean isTimeToExecute(String cron, Date lastExecution)
cron - the cronlastExecution - the last execution dateCopyright © 2022 DEISER. All Rights Reserved.