Interface ScheduledPersistedActionService

All Known Implementing Classes:
ScheduledPersistedActionServiceImpl

public interface ScheduledPersistedActionService
A service which handles the scheduling of the execution of persisted actions. It handles registering them with the Quartz scheduler on repository start, and handles the edit, creation and deletion of them.
Since:
3.4
Author:
Nick Burch
  • Method Details

    • createSchedule

      ScheduledPersistedAction createSchedule(Action persistedAction)
      Creates a new schedule, for the specified Action.
    • saveSchedule

      void saveSchedule(ScheduledPersistedAction schedule)
      Saves the changes to the schedule to the repository, and updates the Scheduler with any changed details.
    • deleteSchedule

      void deleteSchedule(ScheduledPersistedAction schedule)
      Removes the schedule for the action, and cancels future executions of it. The persisted action is unchanged.
    • getSchedule

      ScheduledPersistedAction getSchedule(Action persistedAction)
      Returns the schedule for the specified action, or null if it isn't currently scheduled.
    • getSchedule

      ScheduledPersistedAction getSchedule(NodeRef persistedActionNodeRef)
      Returns the schedule for the specified action nodeRef, or null if it isn't currently scheduled.
    • listSchedules

      List<ScheduledPersistedAction> listSchedules()
      Returns all currently scheduled actions.