Class ScheduleDescriptionProvider

java.lang.Object
io.jmix.quartz.util.ScheduleDescriptionProvider

@Component("quartz_ScheduleDescriptionProvider") public class ScheduleDescriptionProvider extends Object
Service for calculating description for quartz jobs and triggers based on their data and localized messages.
  • Field Details

    • messages

      protected Messages messages
  • Constructor Details

    • ScheduleDescriptionProvider

      @Autowired public ScheduleDescriptionProvider(Messages messages)
  • Method Details

    • getScheduleDescription

      @Nullable public String getScheduleDescription(TriggerModel triggerModel)
      Calculating trigger description, based on schedule type, repeat count and repeat interval. Text messages is taken from correspondent localized properties files.
      Parameters:
      triggerModel - trigger data to calculate trigger description
      Returns:
      localized description
    • getScheduleDescription

      @Nullable public String getScheduleDescription(JobModel jobModel)
      Calculating schedule description for quartz Job, based on schedule description of associated triggers as comma-separated string.
      Parameters:
      jobModel - to calculate description
      Returns:
      calculated description as comma-separated string