public abstract class ContentPreProcessingTasklet extends Object implements org.springframework.batch.core.step.tasklet.Tasklet
Base class for the content pre processing job step based on the Tasklet
. It wraps the job parameters into a ContentPreProcessingTaskletContext
which simplifies
the access to the job parameters.
Tasklet
Constructor and Description |
---|
ContentPreProcessingTasklet(CurrentTenantService currentTenantService,
CurrentUserService currentUserService)
Create a content pre processing tasklet with the current tenant and current user service which are needed to execute the
preProcessContent(ContentPreProcessingTaskletContext) in the given scope. |
Modifier and Type | Method and Description |
---|---|
org.springframework.batch.repeat.RepeatStatus |
execute(org.springframework.batch.core.StepContribution contribution,
org.springframework.batch.core.scope.context.ChunkContext chunkContext) |
public ContentPreProcessingTasklet(CurrentTenantService currentTenantService, CurrentUserService currentUserService)
Create a content pre processing tasklet with the current tenant and current user service which are needed to execute the preProcessContent(ContentPreProcessingTaskletContext)
in the given scope.
currentTenantService
- the current tenant servicecurrentUserService
- the current user servicepublic org.springframework.batch.repeat.RepeatStatus execute(org.springframework.batch.core.StepContribution contribution, org.springframework.batch.core.scope.context.ChunkContext chunkContext) throws Exception
execute
in interface org.springframework.batch.core.step.tasklet.Tasklet
Exception
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.