Package org.opencustomer.connector.mail.messages

Examples of org.opencustomer.connector.mail.messages.JobReminderMail


        }
        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;
View Full Code Here


            for(JobVO job : jobs)
            {
                if(log.isDebugEnabled())
                    log.debug("generating jobs for job: " + job);
               
                JobReminderMail reminderMail;
                try
                {
                    reminderMail = new JobReminderMail();
                }
                catch (AddressException e1)
                {
                    log.warn("cannot create reminder mail, incorrect sender address",e1);
                    return;
                }
                reminderMail.setJob(job);
                try
                {
                    reminderMail.setUser(user);

               
                    MailJob mailJob = new MailJob(reminderMail);
                   
                    for(Object obj :  manager.getAlarmManager().getAllAlarms())
View Full Code Here

TOP

Related Classes of org.opencustomer.connector.mail.messages.JobReminderMail

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.