public class ScheduledPersistedActionImpl extends java.lang.Object implements ScheduledPersistedAction
SchedulableAction.IntervalPeriod| Modifier | Constructor and Description |
|---|---|
protected |
ScheduledPersistedActionImpl(Action action) |
| Modifier and Type | Method and Description |
|---|---|
org.quartz.Trigger |
asTrigger()
Returns a Quartz trigger definition based on the current
scheduling details.
|
Action |
getAction()
Get the action which the schedule applies to
|
org.alfresco.service.cmr.repository.NodeRef |
getActionNodeRef()
Get where the action lives
|
protected org.alfresco.service.cmr.repository.NodeRef |
getPersistedAtNodeRef()
Get the persisted nodeRef for this schedule
|
protected java.util.Date |
getScheduleEnd()
Not yet publicly available - get the date after
which the action should no longer be run.
|
java.lang.String |
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
|
java.lang.Integer |
getScheduleIntervalCount()
How many
ScheduledPersistedActionImpl.getScheduleIntervalPeriod() periods
should we wait between executions?
Will be null if the action isn't scheduled to
be repeated. |
SchedulableAction.IntervalPeriod |
getScheduleIntervalPeriod()
How long are
ScheduledPersistedActionImpl.getScheduleIntervalCount() counts
measured in? |
java.util.Date |
getScheduleLastExecutedAt()
When was this action last run, if ever?
|
java.util.Date |
getScheduleStart()
Get the first date that the action should be run
on or after, or null if it should start shortly
after each startup.
|
protected void |
setPersistedAtNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Record where this schedule is persisted
|
protected void |
setScheduleEnd(java.util.Date endDate)
Not yet publicly available - set the date after
which the action should no longer be run.
|
void |
setScheduleIntervalCount(java.lang.Integer count)
Sets how many periods should be waited between
each execution, or null if it shouldn't be
repeated.
|
void |
setScheduleIntervalPeriod(SchedulableAction.IntervalPeriod period)
Sets the interval period
|
void |
setScheduleLastExecutedAt(java.util.Date executedAt)
Record when the scheduled action was last run
|
void |
setScheduleStart(java.util.Date startDate)
Sets the first date that the action should be
run on or after.
|
protected ScheduledPersistedActionImpl(Action action)
protected org.alfresco.service.cmr.repository.NodeRef getPersistedAtNodeRef()
protected void setPersistedAtNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public Action getAction()
getAction in interface ScheduledPersistedActionpublic org.alfresco.service.cmr.repository.NodeRef getActionNodeRef()
getActionNodeRef in interface ScheduledPersistedActionpublic java.util.Date getScheduleLastExecutedAt()
getScheduleLastExecutedAt in interface ScheduledPersistedActionpublic void setScheduleLastExecutedAt(java.util.Date executedAt)
public java.util.Date getScheduleStart()
getScheduleStart in interface SchedulableActionpublic void setScheduleStart(java.util.Date startDate)
setScheduleStart in interface SchedulableActionprotected java.util.Date getScheduleEnd()
protected void setScheduleEnd(java.util.Date endDate)
public java.lang.Integer getScheduleIntervalCount()
ScheduledPersistedActionImpl.getScheduleIntervalPeriod() periods
should we wait between executions?
Will be null if the action isn't scheduled to
be repeated.getScheduleIntervalCount in interface SchedulableActionpublic void setScheduleIntervalCount(java.lang.Integer count)
setScheduleIntervalCount in interface SchedulableActionpublic SchedulableAction.IntervalPeriod getScheduleIntervalPeriod()
ScheduledPersistedActionImpl.getScheduleIntervalCount() counts
measured in?getScheduleIntervalPeriod in interface SchedulableActionpublic void setScheduleIntervalPeriod(SchedulableAction.IntervalPeriod period)
setScheduleIntervalPeriod in interface SchedulableActionpublic java.lang.String getScheduleInterval()
getScheduleInterval in interface ScheduledPersistedActionpublic org.quartz.Trigger asTrigger()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.