}
else if(saveOrUpdateEvent.getEntity() instanceof JobVO)
{
JobVO job = (JobVO)saveOrUpdateEvent.getEntity();
SchedulingManager manager = SchedulingManager.getInstance();
JobReminderMail reminderMail;
try
{
reminderMail = new JobReminderMail();
reminderMail.setUser(job.getAssignedUser());
}
catch (NoValidSenderException e1)
{
log.warn("no person for user: " + job.getAssignedUser());
return;
}
catch (AddressException e1)
{
log.warn("cannot create reminder mail, incorrect sender address");
return;
}
reminderMail.setJob(job);
MailJob mailJob = new MailJob(reminderMail);
for(Object obj : manager.getAlarmManager().getAllAlarms())
{
AlarmEntry alarmEntry = (AlarmEntry) obj;