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 Summary
Modifier and TypeMethodDescriptioncreateSchedule(Action persistedAction) Creates a new schedule, for the specified Action.voiddeleteSchedule(ScheduledPersistedAction schedule) Removes the schedule for the action, and cancels future executions of it.getSchedule(Action persistedAction) Returns the schedule for the specified action, or null if it isn't currently scheduled.getSchedule(NodeRef persistedActionNodeRef) Returns the schedule for the specified action nodeRef, or null if it isn't currently scheduled.Returns all currently scheduled actions.voidsaveSchedule(ScheduledPersistedAction schedule) Saves the changes to the schedule to the repository, and updates the Scheduler with any changed details.
-
Method Details
-
createSchedule
Creates a new schedule, for the specified Action. -
saveSchedule
Saves the changes to the schedule to the repository, and updates the Scheduler with any changed details. -
deleteSchedule
Removes the schedule for the action, and cancels future executions of it. The persisted action is unchanged. -
getSchedule
Returns the schedule for the specified action, or null if it isn't currently scheduled. -
getSchedule
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.
-