Class NotificationJob

    • Field Summary

      Fields 
      Modifier and Type Field 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 Summary

      Constructors 
      Constructor Description
      NotificationJob()  
      NotificationJob​(org.exoplatform.container.ExoContainer exoContainer)  
    • 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
    • Constructor Detail

      • NotificationJob

        public NotificationJob()
      • NotificationJob

        public NotificationJob​(org.exoplatform.container.ExoContainer exoContainer)
    • Method Detail

      • 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