public class CronScheduledQueryBasedTemplateActionDefinition extends AbstractScheduledAction
AbstractScheduledAction.CompensatingActionMode, AbstractScheduledAction.JobDefinition, AbstractScheduledAction.Pair<FIRST,SECOND>, AbstractScheduledAction.TransactionMode
Constructor and Description |
---|
CronScheduledQueryBasedTemplateActionDefinition()
Default constructore
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Register with the scheduler.
|
Action |
getAction(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Generate the actual action for the given node from the action template.
|
String |
getCronExpression()
Get the cron expression.
|
String |
getJobGroup()
Get the job group.
|
String |
getJobName()
Get the job name
|
List<org.alfresco.service.cmr.repository.NodeRef> |
getNodes()
Get the list of nodes against which this action should run.
|
String |
getQueryLanguage()
Get the query language.
|
String |
getQueryTemplate()
Get the template from which to build the query.
|
org.quartz.Scheduler |
getScheduler()
Get the scheduler.
|
org.alfresco.service.cmr.search.SearchService |
getSearchService()
Get the search service.
|
List<String> |
getStores()
Get the list of stores.
|
TemplateActionModelFactory |
getTemplateActionModelFactory()
Get the template action model factory.
|
TemplateService |
getTemplateService()
Get the template service.
|
org.quartz.Trigger |
getTrigger()
Get the trigger definition for this job.
|
String |
getTriggerGroup()
Get the name of the trigger group.
|
String |
getTriggerName()
Get the trigger name
|
void |
setCronExpression(String cronExpression)
Set the cron expression - see the wiki for examples.
|
void |
setJobGroup(String jobGroup)
Set the job group.
|
void |
setJobName(String jobName)
Set the job name.
|
void |
setQueryLanguage(String queryLanguage)
Set the query language
|
void |
setQueryTemplate(String queryTemplate)
Set the template for the query.
|
void |
setScheduler(org.quartz.Scheduler scheduler)
Set the scheduler.
|
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
Set the search service.
|
void |
setStores(List<String> stores)
Set alist of stores to use.
|
void |
setTemplateActionModelFactory(TemplateActionModelFactory templateActionModelFactory)
Set the template action model factory.
|
void |
setTemplateService(TemplateService templateService)
Set the template service.
|
void |
setTriggerGroup(String triggerGroup)
Set the trigger group.
|
void |
setTriggerName(String triggerName)
Set the trigger name.
|
getActionService, getCompensatingActionModeEnum, getRunAsUser, getTemplateActionDefinition, getTransactionModeEnum, getTransactionService, register, setActionService, setCompensatingActionMode, setRunAsUser, setTemplateActionDefinition, setTransactionMode, setTransactionService
public CronScheduledQueryBasedTemplateActionDefinition()
public org.alfresco.service.cmr.search.SearchService getSearchService()
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
searchService
- SearchServicepublic TemplateService getTemplateService()
public void setTemplateService(TemplateService templateService)
templateService
- TemplateServicepublic org.quartz.Scheduler getScheduler()
public void setScheduler(org.quartz.Scheduler scheduler)
scheduler
- Schedulerpublic TemplateActionModelFactory getTemplateActionModelFactory()
public void setTemplateActionModelFactory(TemplateActionModelFactory templateActionModelFactory)
templateActionModelFactory
- TemplateActionModelFactorypublic org.quartz.Trigger getTrigger()
AbstractScheduledAction
getTrigger
in class AbstractScheduledAction
public List<org.alfresco.service.cmr.repository.NodeRef> getNodes()
AbstractScheduledAction
getNodes
in class AbstractScheduledAction
public Action getAction(org.alfresco.service.cmr.repository.NodeRef nodeRef)
AbstractScheduledAction
getAction
in class AbstractScheduledAction
nodeRef
- NodeRefpublic void setQueryLanguage(String queryLanguage)
queryLanguage
- Stringpublic String getQueryLanguage()
public void setStores(List<String> stores)
stores
- - the list of stores.public void setQueryTemplate(String queryTemplate)
queryTemplate
- Stringpublic String getQueryTemplate()
public void setCronExpression(String cronExpression)
cronExpression
- Stringpublic String getCronExpression()
public void setJobName(String jobName)
jobName
- Stringpublic String getJobName()
public void setJobGroup(String jobGroup)
jobGroup
- Stringpublic String getJobGroup()
public void setTriggerName(String triggerName)
triggerName
- Stringpublic String getTriggerName()
public void setTriggerGroup(String triggerGroup)
triggerGroup
- Stringpublic String getTriggerGroup()
Copyright © 2005–2017 Alfresco Software. All rights reserved.