public ValidationResponse validateScheduledTask( ApplicationValidationContext ctx, CScheduledTask settings ) { ValidationResponse response = new ApplicationValidationResponse(); if ( ctx != null ) { response.setContext( ctx ); } ApplicationValidationContext context = (ApplicationValidationContext) response.getContext(); response.append( validateSchedule( context, settings.getSchedule() ) ); return response; }
task.getSchedule(), new Date( task.getNextRun() ) ), task.isEnabled() );
if ( cScheduledTask.getSchedule() != null ) writeCScheduleConfig( (CScheduleConfig) cScheduledTask.getSchedule(), "schedule", serializer );