Interface ScheduledPersistedActionService
-
- All Known Implementing Classes:
ScheduledPersistedActionServiceImpl
public interface ScheduledPersistedActionServiceA 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScheduledPersistedActioncreateSchedule(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.ScheduledPersistedActiongetSchedule(Action persistedAction)Returns the schedule for the specified action, or null if it isn't currently scheduled.ScheduledPersistedActiongetSchedule(org.alfresco.service.cmr.repository.NodeRef persistedActionNodeRef)Returns the schedule for the specified action nodeRef, or null if it isn't currently scheduled.java.util.List<ScheduledPersistedAction>listSchedules()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 Detail
-
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(org.alfresco.service.cmr.repository.NodeRef persistedActionNodeRef)
Returns the schedule for the specified action nodeRef, or null if it isn't currently scheduled.
-
listSchedules
java.util.List<ScheduledPersistedAction> listSchedules()
Returns all currently scheduled actions.
-
-