Iterator<ReportSchedule> iterator = schedulerProvider.getScheduledReports(user).iterator();
while(iterator.hasNext())
{
ReportSchedule schedule = iterator.next();
ReportScheduleInfo scheduleInfo = new ReportScheduleInfo();
scheduleInfo.setNextFireDate(schedule.getNextFireDate());
scheduleInfo.setReportName(schedule.getReport().getName());
scheduleInfo.setScheduleDescription(schedule.getScheduleDescription());
scheduleInfo.setScheduleTypeName(schedule.getScheduleTypeName());
if (schedule.getAlert() != null)
{
scheduleInfo.setAlert(Converter.convertToAlertInfo(schedule.getAlert()));
}
schedules.add(scheduleInfo);
}
}