public abstract class NotificationJob extends Object implements org.quartz.Job
| Modifier and Type | Field and Description |
|---|---|
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> |
DAY_OF_JOB
Define the argument parameter for DAY OF JOB job with String type
|
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<Boolean> |
JOB_DAILY
Define the argument parameter for DAILY job with Boolean type
|
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<Boolean> |
JOB_WEEKLY
Define the argument parameter for WEEKLY job with Boolean type
|
protected static org.exoplatform.services.log.Log |
LOG
Defines the Logger instance
|
| Constructor and Description |
|---|
NotificationJob() |
NotificationJob(org.exoplatform.container.ExoContainer exoContainer) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(org.quartz.JobExecutionContext context) |
protected boolean |
isValid() |
protected void |
processSendNotification()
Process the job to build the message and send to target.
|
protected void |
processSendNotification(org.quartz.JobExecutionContext context) |
protected static final org.exoplatform.services.log.Log LOG
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Boolean> JOB_DAILY
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> DAY_OF_JOB
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Boolean> JOB_WEEKLY
public NotificationJob()
public NotificationJob(org.exoplatform.container.ExoContainer exoContainer)
public void execute(org.quartz.JobExecutionContext context)
throws org.quartz.JobExecutionException
execute in interface org.quartz.Joborg.quartz.JobExecutionExceptionprotected boolean isValid()
protected void processSendNotification()
throws Exception
ExceptionCopyright © 2003–2020 eXo Platform SAS. All rights reserved.