org.alfresco.service.cmr.action.scheduled
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

Method Summary
 ScheduledPersistedAction createSchedule(Action persistedAction)
          Creates a new schedule, for the specified Action.
 void deleteSchedule(ScheduledPersistedAction schedule)
          Removes the schedule for the action, and cancels future executions of it.
 ScheduledPersistedAction getSchedule(Action persistedAction)
          Returns the schedule for the specified action, or null if it isn't currently scheduled.
 java.util.List listSchedules()
          Returns all currently scheduled actions.
 void saveSchedule(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.


listSchedules

java.util.List listSchedules()
Returns all currently scheduled actions.



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.