@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class CalendarEventService extends Object
Constructor and Description |
---|
CalendarEventService(Moment now,
CronJobService cronJobService) |
public CalendarEventService(Moment now, CronJobService cronJobService)
public List<CalendarEvent> getCalendarEvents(List<? extends hudson.model.Job> jobs, MomentRange inclusionRange, CalendarView.CalendarViewEventsType eventsType)
jobs
- The jobs from which to collect all CalendarEventsinclusionRange
- The range for which CalendarEvents should be returnedeventsType
- The type of event that should be filtered onpublic List<ScheduledCalendarEvent> getScheduledEventsForward(List<? extends hudson.model.Job> jobs, MomentRange searchRange, MomentRange inclusionRange, CalendarView.CalendarViewEventsType eventsType)
public List<ScheduledCalendarEvent> getScheduledEventsBackward(List<? extends hudson.model.Job> jobs, MomentRange searchRange, MomentRange inclusionRange, CalendarView.CalendarViewEventsType eventsType)
public List<ScheduledCalendarEvent> getScheduledEvents(List<? extends hudson.model.Job> jobs, io.jenkins.plugins.view.calendar.service.CalendarEventService.ScheduledEventCollector collector, CalendarView.CalendarViewEventsType eventsType)
public List<StartedCalendarEvent> getFinishedEvents(List<? extends hudson.model.Job> jobs, MomentRange range, CalendarView.CalendarViewEventsType eventsType)
public List<StartedCalendarEvent> getRunningEvents(List<? extends hudson.model.Job> jobs, MomentRange range, CalendarView.CalendarViewEventsType eventsType)
public List<StartedCalendarEvent> getStartedEvents(List<? extends hudson.model.Job> jobs, MomentRange range, CalendarEventState state, CalendarView.CalendarViewEventsType eventsType)
public List<StartedCalendarEvent> getLastEvents(CalendarEvent event, int numberOfEvents)
public StartedCalendarEvent getPreviousEvent(StartedCalendarEvent event)
public StartedCalendarEvent getNextEvent(StartedCalendarEvent event)
public ScheduledCalendarEvent getNextScheduledEvent(CalendarEvent event, CalendarView.CalendarViewEventsType eventsType)
Copyright © 2016–2023. All rights reserved.