public class ContentPreProcessingTaskletContext extends Object
The content pre processing tasklet context used to convert the job parameters and wrap it into a context to simplify the access to the parameters.
Modifier and Type | Method and Description |
---|---|
static ContentPreProcessingTaskletContext |
create(org.springframework.batch.core.JobExecution jobExecution)
Create a new content pre processing tasklet context based on the given
JobExecution . |
Map<String,String> |
getContentInfoProperties()
Returns the content info properties of the content which is added.
|
Optional<ContentMetadata> |
getContentMetadata()
Returns the content metadata of the content which is added/updated.
|
ContentReference |
getContentReference()
Returns the content reference of the content which is added/updated.
|
ContentScope |
getContentScope()
Returns the content scope of the content which is added/updated.
|
String |
getCurrentTenantId()
Returns the current tenant id.
|
String |
getCurrentUserId()
Returns the current user id.
|
org.springframework.batch.core.JobExecution |
getJobExecution()
Returns the job execution of the current job.
|
Path |
getOriginalFile()
Returns the original file path.
|
Path |
getProcessedFile()
Returns the processed file path.
|
Path |
getWorkDirectory()
Returns the work directory used as temporary directory for the specified job.
|
String |
toString() |
public static ContentPreProcessingTaskletContext create(org.springframework.batch.core.JobExecution jobExecution)
Create a new content pre processing tasklet context based on the given JobExecution
.
jobExecution
- the job executionpublic String getCurrentTenantId()
Returns the current tenant id.
public String getCurrentUserId()
Returns the current user id.
public Path getOriginalFile()
Returns the original file path.
public Path getProcessedFile()
Returns the processed file path.
public Path getWorkDirectory()
Returns the work directory used as temporary directory for the specified job.
public ContentScope getContentScope()
Returns the content scope of the content which is added/updated.
public Optional<ContentMetadata> getContentMetadata()
Returns the content metadata of the content which is added/updated.
public ContentReference getContentReference()
Returns the content reference of the content which is added/updated.
public Map<String,String> getContentInfoProperties()
Returns the content info properties of the content which is added.
public org.springframework.batch.core.JobExecution getJobExecution()
Returns the job execution of the current job.
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.