Class NotificationJob
- java.lang.Object
-
- org.exoplatform.commons.notification.job.NotificationJob
-
- All Implemented Interfaces:
org.quartz.Job
- Direct Known Subclasses:
NotificationDailyJob,NotificationWeeklyJob,WebNotificationJob
public abstract class NotificationJob extends Object implements org.quartz.Job
-
-
Field Summary
Fields Modifier and Type Field Description static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>DAY_OF_JOBDefine the argument parameter for DAY OF JOB job with String typestatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<Boolean>JOB_DAILYDefine the argument parameter for DAILY job with Boolean typestatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<Boolean>JOB_WEEKLYDefine the argument parameter for WEEKLY job with Boolean typeprotected static org.exoplatform.services.log.LogLOGDefines the Logger instance
-
Constructor Summary
Constructors Constructor Description NotificationJob()NotificationJob(org.exoplatform.container.ExoContainer exoContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(org.quartz.JobExecutionContext context)protected voidprocessSendNotification()Process the job to build the message and send to target.protected voidprocessSendNotification(org.quartz.JobExecutionContext context)
-
-
-
Field Detail
-
LOG
protected static final org.exoplatform.services.log.Log LOG
Defines the Logger instance
-
JOB_DAILY
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Boolean> JOB_DAILY
Define the argument parameter for DAILY job with Boolean type
-
DAY_OF_JOB
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> DAY_OF_JOB
Define the argument parameter for DAY OF JOB job with String type
-
JOB_WEEKLY
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Boolean> JOB_WEEKLY
Define the argument parameter for WEEKLY job with Boolean type
-
-
Method Detail
-
execute
public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException- Specified by:
executein interfaceorg.quartz.Job- Throws:
org.quartz.JobExecutionException
-
processSendNotification
protected void processSendNotification() throws ExceptionProcess the job to build the message and send to target.- Throws:
Exception
-
-