Class ScheduledPersistedActionImpl
java.lang.Object
org.alfresco.repo.action.scheduled.ScheduledPersistedActionImpl
- All Implemented Interfaces:
SchedulableAction,ScheduledPersistedAction
The scheduling wrapper around a persisted action, which is to be executed on a scheduled basis.
- Since:
- 3.4
- Author:
- Nick Burch
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.action.scheduled.SchedulableAction
SchedulableAction.IntervalPeriod -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.quartz.TriggerReturns a Quartz trigger definition based on the current scheduling details.Get the action which the schedule applies toGet where the action livesprotected NodeRefGet the persisted nodeRef for this scheduleprotected DateNot yet publicly available - get the date after which the action should no longer be run.Returns the interval in a form like 1Day (1 day) or 2Hour (2 hours), or null if a period+count hasn't been setHow manygetScheduleIntervalPeriod()periods should we wait between executions?How long aregetScheduleIntervalCount()counts measured in?When was this action last run, if ever?Get the first date that the action should be run on or after, or null if it should start shortly after each startup.protected voidsetPersistedAtNodeRef(NodeRef nodeRef) Record where this schedule is persistedprotected voidsetScheduleEnd(Date endDate) Not yet publicly available - set the date after which the action should no longer be run.voidsetScheduleIntervalCount(Integer count) Sets how many periods should be waited between each execution, or null if it shouldn't be repeated.voidSets the interval periodvoidsetScheduleLastExecutedAt(Date executedAt) Record when the scheduled action was last runvoidsetScheduleStart(Date startDate) Sets the first date that the action should be run on or after.
-
Constructor Details
-
ScheduledPersistedActionImpl
-
-
Method Details
-
getPersistedAtNodeRef
Get the persisted nodeRef for this schedule -
setPersistedAtNodeRef
Record where this schedule is persisted -
getAction
Get the action which the schedule applies to- Specified by:
getActionin interfaceScheduledPersistedAction
-
getActionNodeRef
Get where the action lives- Specified by:
getActionNodeRefin interfaceScheduledPersistedAction
-
getScheduleLastExecutedAt
When was this action last run, if ever?- Specified by:
getScheduleLastExecutedAtin interfaceScheduledPersistedAction
-
setScheduleLastExecutedAt
Record when the scheduled action was last run -
getScheduleStart
Get the first date that the action should be run on or after, or null if it should start shortly after each startup.- Specified by:
getScheduleStartin interfaceSchedulableAction
-
setScheduleStart
Sets the first date that the action should be run on or after. Set to null if the action should be run shortly after each startup.- Specified by:
setScheduleStartin interfaceSchedulableAction
-
getScheduleEnd
Not yet publicly available - get the date after which the action should no longer be run. -
setScheduleEnd
Not yet publicly available - set the date after which the action should no longer be run. -
getScheduleIntervalCount
How manygetScheduleIntervalPeriod()periods should we wait between executions? Will be null if the action isn't scheduled to be repeated.- Specified by:
getScheduleIntervalCountin interfaceSchedulableAction
-
setScheduleIntervalCount
Sets how many periods should be waited between each execution, or null if it shouldn't be repeated.- Specified by:
setScheduleIntervalCountin interfaceSchedulableAction
-
getScheduleIntervalPeriod
How long aregetScheduleIntervalCount()counts measured in?- Specified by:
getScheduleIntervalPeriodin interfaceSchedulableAction
-
setScheduleIntervalPeriod
Sets the interval period- Specified by:
setScheduleIntervalPeriodin interfaceSchedulableAction
-
getScheduleInterval
Returns the interval in a form like 1Day (1 day) or 2Hour (2 hours), or null if a period+count hasn't been set- Specified by:
getScheduleIntervalin interfaceScheduledPersistedAction
-
asTrigger
public org.quartz.Trigger asTrigger()Returns a Quartz trigger definition based on the current scheduling details. May only be called once this object has been persisted
-