Package io.jmix.quartz.util
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetScheduleDescription
(JobModel jobModel) Calculating schedule description for quartz Job, based on schedule description of associated triggers as comma-separated string.getScheduleDescription
(TriggerModel triggerModel) Calculating trigger description, based on schedule type, repeat count and repeat interval.
-
Field Details
-
messages
-
-
Constructor Details
-
ScheduleDescriptionProvider
-
-
Method Details
-
getScheduleDescription
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
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
-