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 final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
    Define the argument parameter for DAY OF JOB job with String type
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Boolean>
    Define the argument parameter for DAILY job with Boolean type
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Boolean>
    Define the argument parameter for WEEKLY job with Boolean type
    protected static final org.exoplatform.services.log.Log
    Defines the Logger instance
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    NotificationJob(org.exoplatform.container.ExoContainer exoContainer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(org.quartz.JobExecutionContext context)
     
    protected void
    Process the job to build the message and send to target.
    protected void
    processSendNotification(org.quartz.JobExecutionContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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
  • 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:
      execute in interface org.quartz.Job
      Throws:
      org.quartz.JobExecutionException
    • processSendNotification

      protected void processSendNotification() throws Exception
      Process the job to build the message and send to target.
      Throws:
      Exception
    • processSendNotification

      protected void processSendNotification(org.quartz.JobExecutionContext context) throws Exception
      Throws:
      Exception