public class CronScheduledQueryBasedTemplateActionDefinition extends AbstractScheduledAction
AbstractScheduledAction.CompensatingActionMode, AbstractScheduledAction.JobDefinition, AbstractScheduledAction.Pair, 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.
|
java.lang.String |
getCronExpression()
Get the cron expression.
|
java.lang.String |
getJobGroup()
Get the job group.
|
java.lang.String |
getJobName()
Get the job name
|
java.util.List |
getNodes()
Get the list of nodes against which this action should run.
|
java.lang.String |
getQueryLanguage()
Get the query language.
|
java.lang.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.
|
java.util.List |
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.
|
java.lang.String |
getTriggerGroup()
Get the name of the trigger group.
|
java.lang.String |
getTriggerName()
Get the trigger name
|
void |
setCronExpression(java.lang.String cronExpression)
Set the cron expression - see the wiki for examples.
|
void |
setJobGroup(java.lang.String jobGroup)
Set the job group.
|
void |
setJobName(java.lang.String jobName)
Set the job name.
|
void |
setQueryLanguage(java.lang.String queryLanguage)
Set the query language
|
void |
setQueryTemplate(java.lang.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(java.util.List 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(java.lang.String triggerGroup)
Set the trigger group.
|
void |
setTriggerName(java.lang.String triggerName)
Set the trigger name.
|
getActionService, getCompensatingActionModeEnum, getRunAsUser, getTemplateActionDefinition, getTransactionModeEnum, getTransactionService, register, setActionService, setCompensatingActionMode, setRunAsUser, setTemplateActionDefinition, setTransactionMode, setTransactionServicepublic CronScheduledQueryBasedTemplateActionDefinition()
public org.alfresco.service.cmr.search.SearchService getSearchService()
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
searchService - public TemplateService getTemplateService()
public void setTemplateService(TemplateService templateService)
templateService - public org.quartz.Scheduler getScheduler()
public void setScheduler(org.quartz.Scheduler scheduler)
scheduler - public TemplateActionModelFactory getTemplateActionModelFactory()
public void setTemplateActionModelFactory(TemplateActionModelFactory templateActionModelFactory)
templateActionModelFactory - public org.quartz.Trigger getTrigger()
AbstractScheduledActiongetTrigger in class AbstractScheduledActionpublic java.util.List getNodes()
AbstractScheduledActiongetNodes in class AbstractScheduledActionpublic Action getAction(org.alfresco.service.cmr.repository.NodeRef nodeRef)
AbstractScheduledActiongetAction in class AbstractScheduledActionpublic void setQueryLanguage(java.lang.String queryLanguage)
queryLanguage - public java.lang.String getQueryLanguage()
public void setStores(java.util.List stores)
stores - - the list of stores.public java.util.List getStores()
public void setQueryTemplate(java.lang.String queryTemplate)
queryTemplate - public java.lang.String getQueryTemplate()
public void setCronExpression(java.lang.String cronExpression)
cronExpression - public java.lang.String getCronExpression()
public void setJobName(java.lang.String jobName)
jobName - public java.lang.String getJobName()
public void setJobGroup(java.lang.String jobGroup)
jobGroup - public java.lang.String getJobGroup()
public void setTriggerName(java.lang.String triggerName)
triggerName - public java.lang.String getTriggerName()
public void setTriggerGroup(java.lang.String triggerGroup)
triggerGroup - public java.lang.String getTriggerGroup()
public void afterPropertiesSet()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.