Class JobSaveContext

java.lang.Object
io.jmix.quartz.service.JobSaveContext

public class JobSaveContext extends Object
Parameters of the QuartzService.saveJob(JobSaveContext) operation. Job data parameters and triggers are taken from the JobModel collections.
  • Field Details

    • jobModel

      protected final JobModel jobModel
    • originalJobKey

      protected org.quartz.JobKey originalJobKey
  • Constructor Details

    • JobSaveContext

      public JobSaveContext(JobModel jobModel)
  • Method Details

    • getJobModel

      public JobModel getJobModel()
    • getOriginalJobKey

      public @Nullable org.quartz.JobKey getOriginalJobKey()
    • setOriginalJobKey

      public JobSaveContext setOriginalJobKey(@Nullable org.quartz.JobKey originalJobKey)
      Sets the key the job currently has in the Quartz engine, which defines what the save does: null (the default) means creation of a new job, a key equal to the one built from the JobModel name and group means an in-place update, a different key makes the save recreate the job under the new key. See QuartzService.saveJob(JobSaveContext) for the complete contract, including the failure cases.