public class ContentPropertiesWriter extends Object implements org.springframework.batch.item.ItemWriter<ContentProperties>, org.springframework.batch.core.StepExecutionListener, org.springframework.batch.core.ItemWriteListener<ContentProperties>
| Constructor and Description |
|---|
ContentPropertiesWriter(org.duracloud.client.ContentStore contentStore,
String destinationSpaceId) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.batch.core.ExitStatus |
afterStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
afterWrite(List<? extends ContentProperties> items) |
void |
beforeStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
beforeWrite(List<? extends ContentProperties> items) |
void |
onWriteError(Exception exception,
List<? extends ContentProperties> items) |
void |
write(List<? extends ContentProperties> items) |
public ContentPropertiesWriter(org.duracloud.client.ContentStore contentStore,
String destinationSpaceId)
contentStore - destinationSpaceId - public org.springframework.batch.core.ExitStatus afterStep(org.springframework.batch.core.StepExecution stepExecution)
afterStep in interface org.springframework.batch.core.StepExecutionListenerpublic void afterWrite(List<? extends ContentProperties> items)
afterWrite in interface org.springframework.batch.core.ItemWriteListener<ContentProperties>public void beforeStep(org.springframework.batch.core.StepExecution stepExecution)
beforeStep in interface org.springframework.batch.core.StepExecutionListenerpublic void beforeWrite(List<? extends ContentProperties> items)
beforeWrite in interface org.springframework.batch.core.ItemWriteListener<ContentProperties>public void onWriteError(Exception exception, List<? extends ContentProperties> items)
onWriteError in interface org.springframework.batch.core.ItemWriteListener<ContentProperties>public void write(List<? extends ContentProperties> items) throws Exception
write in interface org.springframework.batch.item.ItemWriter<ContentProperties>ExceptionCopyright © 2014–2015 DuraSpace. All rights reserved.