|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xpn.xwiki.plugin.scheduler.GroovyJob
public class GroovyJob
The task that will get executed by the Scheduler when the Job is triggered. This task in turn calls a Groovy script to perform the execution.
Important:: Note that the script will execute in the XWiki Context that was set at the time the Job was
scheduled for execution. For example calling context.getDoc() will return the current document that
was set at that time and not the current document that is set when the Groovy script executes...
| Constructor Summary | |
|---|---|
GroovyJob()
|
|
| Method Summary | |
|---|---|
void |
execute(org.quartz.JobExecutionContext jobContext)
Executes the Groovy script passed in the script property of the SchedulerPlugin.XWIKI_JOB_CLASS object extracted from the XWiki context passed in
the Quartz's Job execution context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroovyJob()
| Method Detail |
|---|
public void execute(org.quartz.JobExecutionContext jobContext)
throws org.quartz.JobExecutionException
script property of the SchedulerPlugin.XWIKI_JOB_CLASS object extracted from the XWiki context passed in
the Quartz's Job execution context. The XWiki Task object is looked for in the current document that was set in
the context at the time the Job was scheduled.
execute in interface org.quartz.JobjobContext - the Quartz execution context containing the XWiki context from which the script to execute is
retrieved
org.quartz.JobExecutionException - if the script fails to execute or if the user didn't have programming rights when
the Job was scheduledJob.execute(org.quartz.JobExecutionContext)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||