Package ch.tocco.nice2.tasks.api.quartz
Class CronExpressionHelper
java.lang.Object
ch.tocco.nice2.tasks.api.quartz.CronExpressionHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkQuartzCronScheduleString
(String scheduleString) check if the quartz schedule string is valid, if not throw a IllegalArgumentExceptionstatic String
getToccoCronScheduleString
(Entity entity) get the Tocco cron schedule string for Batch_job and Dynamic_batch_job entitiesstatic void
isValidDaysOfMonth
(String value) check if the days of month value is validstatic void
isValidDaysOfWeek
(String value) check if the days of week value is validstatic void
isValidHours
(String value) check if the hour value is validstatic void
isValidMinutes
(String value) check if the minute value is validstatic void
isValidMonth
(String value) check if the month value is validstatic String
toQuartzCronScheduleString
(Entity entity) get the quartz cron schedule string for Batch_job and Dynamic_batch_job entitiesstatic String
toQuartzCronScheduleString
(String toccoScheduleString) convert the tocco schedule string to the quartz schedule stringstatic String
Convert 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
get the Tocco cron schedule string for Batch_job and Dynamic_batch_job entities -
toQuartzCronScheduleString
convert the tocco schedule string to the quartz schedule string -
checkQuartzCronScheduleString
check if the quartz schedule string is valid, if not throw a IllegalArgumentException -
toQuartzCronScheduleString
get the quartz cron schedule string for Batch_job and Dynamic_batch_job entities -
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
-