} else {
// Run on Nth day of the month
monthlyRecurrenceEditor.setDayOfMonth( Integer.toString( jsJobTrigger.getDayOfMonthRecurrences()[0] ) );
}
} else if ( scheduleType == ScheduleType.YEARLY ) {
YearlyRecurrenceEditor yearlyRecurrenceEditor = scheduleEditor.getRecurrenceEditor().getYearlyEditor();
if ( jsJobTrigger.isQualifiedDayOfWeekRecurrence() ) {
// Run Every on ___day of Nth week of the month M yearly
yearlyRecurrenceEditor.setDayOfWeek( TimeUtil.DayOfWeek.valueOf( jsJobTrigger.getQualifiedDayOfWeek() ) );
yearlyRecurrenceEditor
.setWeekOfMonth( TimeUtil.WeekOfMonth.valueOf( jsJobTrigger.getDayOfWeekQualifier() ) );
yearlyRecurrenceEditor.setMonthOfYear1( TimeUtil.MonthOfYear
.get( jsJobTrigger.getMonthlyRecurrences()[0] - 1 ) );
yearlyRecurrenceEditor.setNthDayNameOfMonthName();
} else {
// Run on Nth day of the month M yearly
yearlyRecurrenceEditor.setDayOfMonth( Integer.toString( jsJobTrigger.getDayOfMonthRecurrences()[0] ) );
yearlyRecurrenceEditor.setMonthOfYear0( TimeUtil.MonthOfYear
.get( jsJobTrigger.getMonthlyRecurrences()[0] - 1 ) );
yearlyRecurrenceEditor.setEveryMonthOnNthDay();
}
}
}
scheduleEditor.setStartDate( jsJobTrigger.getStartTime() );
scheduleEditor.setStartTime( DateTimeFormat.getFormat( PredefinedFormat.HOUR_MINUTE_SECOND ).format(