Interface CronExpressionService


public interface CronExpressionService
The interface Cron service.
  • Method Details

    • createCronFromDaysOfWeek

      String createCronFromDaysOfWeek(List<DayOfWeek> daysOfWeek, LocalTime time)
      Create cron from days of week.
      Parameters:
      daysOfWeek - the days of week
      time - the time
      Returns:
      the string
    • createConFromDaysOfMonth

      String createConFromDaysOfMonth(List<Integer> daysOfMonth, LocalTime time)
      Create con from days of month.
      Parameters:
      daysOfMonth - the days of month
      time - the time
      Returns:
      the string
    • getHumanReadableDescription

      String getHumanReadableDescription(String cron, Locale locale)
      Gets human readable description.
      Parameters:
      cron - the cron
      locale - the locale
      Returns:
      the human readable description
    • isValidCronExpression

      boolean isValidCronExpression(String cron)
      Is valid cron expression boolean.
      Parameters:
      cron - the cron
      Returns:
      the boolean
    • getNextExecution

      Date getNextExecution(String cron, Date lastExecution)
      Get the next execution.
      Parameters:
      cron - the cron
      lastExecution - the last execution date
      Returns:
      the boolean
    • isTimeToExecute

      boolean isTimeToExecute(String cron, Date lastExecution)
      Get the next execution.
      Parameters:
      cron - the cron
      lastExecution - the last execution date
      Returns:
      the boolean
    • isTimeToExecute

      boolean 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