Class CronExpressionHelper
java.lang.Object
ch.tocco.nice2.tasks.api.quartz.CronExpressionHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckQuartzCronScheduleString(String scheduleString) check if the quartz schedule string is valid, if not throw a IllegalArgumentExceptionstatic StringgetToccoCronScheduleString(Entity entity) get the Tocco cron schedule string for Batch_job and Dynamic_batch_job entitiesstatic voidisValidDaysOfMonth(String value) check if the days of month value is validstatic voidisValidDaysOfWeek(String value) check if the days of week value is validstatic voidisValidHours(String value) check if the hour value is validstatic voidisValidMinutes(String value) check if the minute value is validstatic voidisValidMonth(String value) check if the month value is validstatic StringtoQuartzCronScheduleString(Entity entity) get the quartz cron schedule string for Batch_job and Dynamic_batch_job entitiesstatic StringtoQuartzCronScheduleString(String toccoScheduleString) convert the tocco schedule string to the quartz schedule stringstatic StringConvert to Tocco cron schedule string
-
Method Details
-
toToccoCronScheduleString
public static String toToccoCronScheduleString(String min, String h, String dom, String m, String dow) Convert to Tocco cron schedule string- Parameters:
min- The string for the minute field.h- The string for the hour field.dom- The string for the day of month field.m- The string for the month field.dow- The string for the day of week field.
-
getToccoCronScheduleString
-
toQuartzCronScheduleString
-
checkQuartzCronScheduleString
check if the quartz schedule string is valid, if not throw a IllegalArgumentException -
toQuartzCronScheduleString
-
isValidMinutes
check if the minute value is valid -
isValidHours
check if the hour value is valid -
isValidDaysOfMonth
check if the days of month value is valid -
isValidMonth
check if the month value is valid -
isValidDaysOfWeek
check if the days of week value is valid
-