Interface CronExpressionService
public interface CronExpressionService
The interface Cron service.
- 
Method SummaryModifier and TypeMethodDescriptioncreateConFromDaysOfMonth(List<Integer> daysOfMonth, LocalTime time) Create con from days of month.createCronFromDaysOfWeek(List<DayOfWeek> daysOfWeek, LocalTime time) Create cron from days of week.getHumanReadableDescription(String cron, Locale locale) Gets human readable description.getNextExecution(String cron, Date lastExecution) Get the next execution.booleanisTimeToExecute(String cron, Date lastExecution) Get the next execution.booleanisTimeToExecute(String cron, Date lastExecution, com.atlassian.jira.user.ApplicationUser user) Get the next execution based on the timezone of the userbooleanisValidCronExpression(String cron) Is valid cron expression boolean.
- 
Method Details- 
createCronFromDaysOfWeekCreate cron from days of week.- Parameters:
- daysOfWeek- the days of week
- time- the time
- Returns:
- the string
 
- 
createConFromDaysOfMonthCreate con from days of month.- Parameters:
- daysOfMonth- the days of month
- time- the time
- Returns:
- the string
 
- 
getHumanReadableDescriptionGets human readable description.- Parameters:
- cron- the cron
- locale- the locale
- Returns:
- the human readable description
 
- 
isValidCronExpressionIs valid cron expression boolean.- Parameters:
- cron- the cron
- Returns:
- the boolean
 
- 
getNextExecutionGet the next execution.- Parameters:
- cron- the cron
- lastExecution- the last execution date
- Returns:
- the boolean
 
- 
isTimeToExecuteGet the next execution.- Parameters:
- cron- the cron
- lastExecution- the last execution date
- Returns:
- the boolean
 
- 
isTimeToExecuteboolean isTimeToExecute(String cron, Date lastExecution, com.atlassian.jira.user.ApplicationUser user) Get the next execution based on the timezone of the user- Parameters:
- cron- the cron
- lastExecution- the last execution date
- user- the user
- Returns:
- the boolean
 
 
-