public abstract class ConfigurableJobExecutor extends Object implements org.apache.sling.event.jobs.consumer.JobExecutor
| Constructor and Description |
|---|
ConfigurableJobExecutor() |
| Modifier and Type | Method and Description |
|---|---|
abstract org.apache.sling.event.jobs.consumer.JobExecutionResult |
doProcess(org.apache.sling.event.jobs.Job job,
org.apache.sling.event.jobs.consumer.JobExecutionContext context,
org.apache.sling.api.resource.ResourceResolver resolver)
A method for Configurable Job Executors to extend.
|
abstract String |
getConfigurationPath()
Get the path to the resource to configure a job invocation.
|
abstract org.apache.sling.api.resource.ResourceResolverFactory |
getResolverFactory()
A method to get the resource resolver factory, should be injected as a
service.
|
abstract String |
getTitleKey()
Get the i18n key for this job.
|
abstract String |
getTopic()
Gets the topic of the job.
|
org.apache.sling.event.jobs.consumer.JobExecutionResult |
process(org.apache.sling.event.jobs.Job job,
org.apache.sling.event.jobs.consumer.JobExecutionContext context) |
public abstract org.apache.sling.event.jobs.consumer.JobExecutionResult doProcess(org.apache.sling.event.jobs.Job job,
org.apache.sling.event.jobs.consumer.JobExecutionContext context,
org.apache.sling.api.resource.ResourceResolver resolver)
job - the job configurationcontext - the job contextresolver - an impersonated resource resolver for the userpublic abstract String getConfigurationPath()
public abstract org.apache.sling.api.resource.ResourceResolverFactory getResolverFactory()
public abstract String getTitleKey()
public abstract String getTopic()
public final org.apache.sling.event.jobs.consumer.JobExecutionResult process(org.apache.sling.event.jobs.Job job,
org.apache.sling.event.jobs.consumer.JobExecutionContext context)
process in interface org.apache.sling.event.jobs.consumer.JobExecutorCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.