public abstract class AbstractScheduledAction extends Object implements ScheduledActionDefinition
Modifier and Type | Class and Description |
---|---|
static class |
AbstractScheduledAction.CompensatingActionMode
Enum to define if compensating actions are run.
|
static class |
AbstractScheduledAction.JobDefinition
Job definition to run scheduled action
|
static class |
AbstractScheduledAction.Pair<FIRST,SECOND>
Simple class to hold to related objects
|
static class |
AbstractScheduledAction.TransactionMode
Enum to define the transaction mode.
|
Constructor and Description |
---|
AbstractScheduledAction()
Simple constructor
|
Modifier and Type | Method and Description |
---|---|
abstract Action |
getAction(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Generate the actual action for the given node from the action template.
|
ActionService |
getActionService()
Get the actions service.
|
AbstractScheduledAction.CompensatingActionMode |
getCompensatingActionModeEnum()
Get the behaviour for compensating actions.
|
abstract List<org.alfresco.service.cmr.repository.NodeRef> |
getNodes()
Get the list of nodes against which this action should run.
|
String |
getRunAsUser()
Get the user in whose name to run the action.
|
TemplateActionDefinition |
getTemplateActionDefinition()
Get the template definition.
|
AbstractScheduledAction.TransactionMode |
getTransactionModeEnum()
Get the transaction mode.
|
TransactionService |
getTransactionService()
Get the transaction service.
|
abstract org.quartz.Trigger |
getTrigger()
Get the trigger definition for this job.
|
void |
register(org.quartz.Scheduler scheduler)
Register with teh scheduler.
|
void |
setActionService(ActionService actionService)
Set the action service - IOC.
|
void |
setCompensatingActionMode(String compensatingActionModeString)
Set the behaviour for compensating actiions.
|
void |
setRunAsUser(String runAsUser)
Set the user in whose name to run the action.
|
void |
setTemplateActionDefinition(TemplateActionDefinition templateActionDefinition)
Set the template action that is used to generate the real action for each node.
|
void |
setTransactionMode(String transactionModeString)
Set transactional behaviour.
|
void |
setTransactionService(TransactionService transactionService)
Set the transactions service - IOC.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getJobGroup, getJobName, getTriggerGroup, getTriggerName, setJobGroup, setJobName, setTriggerGroup, setTriggerName
public String getRunAsUser()
public void setRunAsUser(String runAsUser)
runAsUser
- Stringpublic TemplateActionDefinition getTemplateActionDefinition()
getTemplateActionDefinition
in interface ScheduledActionDefinition
public void setActionService(ActionService actionService)
actionService
- ActionServicepublic ActionService getActionService()
public void setCompensatingActionMode(String compensatingActionModeString)
compensatingActionModeString
- Stringpublic void setTransactionMode(String transactionModeString)
transactionModeString
- Stringpublic TransactionService getTransactionService()
public void setTransactionService(TransactionService transactionService)
transactionService
- TransactionServicepublic void setTemplateActionDefinition(TemplateActionDefinition templateActionDefinition)
setTemplateActionDefinition
in interface ScheduledActionDefinition
templateActionDefinition
- TemplateActionDefinitionpublic AbstractScheduledAction.CompensatingActionMode getCompensatingActionModeEnum()
public AbstractScheduledAction.TransactionMode getTransactionModeEnum()
public void register(org.quartz.Scheduler scheduler) throws org.quartz.SchedulerException
register
in interface ScheduledActionDefinition
scheduler
- Schedulerorg.quartz.SchedulerException
public abstract org.quartz.Trigger getTrigger()
public abstract List<org.alfresco.service.cmr.repository.NodeRef> getNodes()
public abstract Action getAction(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- NodeRefCopyright © 2005–2017 Alfresco Software. All rights reserved.