Class NotificationJob
java.lang.Object
org.exoplatform.commons.notification.job.NotificationJob
- All Implemented Interfaces:
org.quartz.Job
- Direct Known Subclasses:
NotificationDailyJob,NotificationWeeklyJob,WebNotificationJob
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>Define the argument parameter for DAY OF JOB job with String typestatic final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Boolean>Define the argument parameter for DAILY job with Boolean typestatic final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Boolean>Define the argument parameter for WEEKLY job with Boolean typeprotected static final org.exoplatform.services.log.LogDefines the Logger instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.quartz.JobExecutionContext context) protected voidProcess the job to build the message and send to target.protected voidprocessSendNotification(org.quartz.JobExecutionContext context)
-
Field Details
-
LOG
protected static final org.exoplatform.services.log.Log LOGDefines the Logger instance -
JOB_DAILY
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Boolean> JOB_DAILYDefine 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_JOBDefine 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_WEEKLYDefine the argument parameter for WEEKLY job with Boolean type
-
-
Constructor Details
-
NotificationJob
public NotificationJob() -
NotificationJob
public NotificationJob(org.exoplatform.container.ExoContainer exoContainer)
-
-
Method Details
-
execute
public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException - Specified by:
executein interfaceorg.quartz.Job- Throws:
org.quartz.JobExecutionException
-
processSendNotification
Process the job to build the message and send to target.- Throws:
Exception
-
processSendNotification
- Throws:
Exception
-