public abstract class ConfigurableJobExecutor
extends java.lang.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 java.lang.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 java.lang.String |
getTitleKey()
Get the i18n key for this job.
|
abstract java.lang.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 java.lang.String getConfigurationPath()
public abstract org.apache.sling.api.resource.ResourceResolverFactory getResolverFactory()
public abstract java.lang.String getTitleKey()
public abstract java.lang.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.JobExecutor
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.