|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.action.scheduled.ScheduledPersistedActionImpl
public class ScheduledPersistedActionImpl
The scheduling wrapper around a persisted action, which is to be executed on a scheduled basis.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.action.scheduled.SchedulableAction |
---|
SchedulableAction.IntervalPeriod |
Constructor Summary | |
---|---|
protected |
ScheduledPersistedActionImpl(Action action)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ScheduledPersistedActionImpl(Action action)
Method Detail |
---|
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 java.util.Date getScheduleLastExecutedAt()
getScheduleLastExecutedAt
in interface ScheduledPersistedAction
public void setScheduleLastExecutedAt(java.util.Date executedAt)
public java.util.Date getScheduleStart()
getScheduleStart
in interface SchedulableAction
public void setScheduleStart(java.util.Date startDate)
setScheduleStart
in interface SchedulableAction
protected 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 SchedulableAction
public void setScheduleIntervalCount(java.lang.Integer count)
setScheduleIntervalCount
in interface SchedulableAction
public SchedulableAction.IntervalPeriod getScheduleIntervalPeriod()
ScheduledPersistedActionImpl.getScheduleIntervalCount()
counts
measured in?
getScheduleIntervalPeriod
in interface SchedulableAction
public void setScheduleIntervalPeriod(SchedulableAction.IntervalPeriod period)
setScheduleIntervalPeriod
in interface SchedulableAction
public java.lang.String getScheduleInterval()
getScheduleInterval
in interface ScheduledPersistedAction
public org.quartz.Trigger asTrigger()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |