public class ScheduledPersistedActionImpl extends 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 Date |
getScheduleEnd()
Not yet publicly available - get the date after
which the action should no longer be run.
|
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
|
Integer |
getScheduleIntervalCount()
How many
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
getScheduleIntervalCount() counts
measured in? |
Date |
getScheduleLastExecutedAt()
When was this action last run, if ever?
|
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(Date endDate)
Not yet publicly available - set the date after
which the action should no longer be run.
|
void |
setScheduleIntervalCount(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(Date executedAt)
Record when the scheduled action was last run
|
void |
setScheduleStart(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 ScheduledPersistedAction
public org.alfresco.service.cmr.repository.NodeRef getActionNodeRef()
getActionNodeRef
in interface ScheduledPersistedAction
public Date getScheduleLastExecutedAt()
getScheduleLastExecutedAt
in interface ScheduledPersistedAction
public void setScheduleLastExecutedAt(Date executedAt)
public Date getScheduleStart()
getScheduleStart
in interface SchedulableAction
public void setScheduleStart(Date startDate)
setScheduleStart
in interface SchedulableAction
protected Date getScheduleEnd()
protected void setScheduleEnd(Date endDate)
public Integer getScheduleIntervalCount()
getScheduleIntervalPeriod()
periods
should we wait between executions?
Will be null if the action isn't scheduled to
be repeated.getScheduleIntervalCount
in interface SchedulableAction
public void setScheduleIntervalCount(Integer count)
setScheduleIntervalCount
in interface SchedulableAction
public SchedulableAction.IntervalPeriod getScheduleIntervalPeriod()
getScheduleIntervalCount()
counts
measured in?getScheduleIntervalPeriod
in interface SchedulableAction
public void setScheduleIntervalPeriod(SchedulableAction.IntervalPeriod period)
setScheduleIntervalPeriod
in interface SchedulableAction
public String getScheduleInterval()
getScheduleInterval
in interface ScheduledPersistedAction
public org.quartz.Trigger asTrigger()
Copyright © 2005–2017 Alfresco Software. All rights reserved.