Class ContentPropertiesWriter

  • All Implemented Interfaces:
    org.springframework.batch.core.ItemWriteListener<ContentProperties>, org.springframework.batch.core.StepExecutionListener, org.springframework.batch.core.StepListener, org.springframework.batch.item.ItemWriter<ContentProperties>

    public class ContentPropertiesWriter
    extends StepExecutionSupport
    implements org.springframework.batch.item.ItemWriter<ContentProperties>, org.springframework.batch.core.ItemWriteListener<ContentProperties>
    Author:
    Daniel Bernstein Date: Aug 22, 2014
    • Constructor Detail

      • ContentPropertiesWriter

        public ContentPropertiesWriter​(org.duracloud.client.ContentStore contentStore,
                                       java.lang.String destinationSpaceId)
        Parameters:
        contentStore -
        destinationSpaceId -
    • Method Detail

      • afterStep

        public org.springframework.batch.core.ExitStatus afterStep​(org.springframework.batch.core.StepExecution stepExecution)
        Specified by:
        afterStep in interface org.springframework.batch.core.StepExecutionListener
        Overrides:
        afterStep in class StepExecutionSupport
      • afterWrite

        public void afterWrite​(java.util.List<? extends ContentProperties> items)
        Specified by:
        afterWrite in interface org.springframework.batch.core.ItemWriteListener<ContentProperties>
      • beforeWrite

        public void beforeWrite​(java.util.List<? extends ContentProperties> items)
        Specified by:
        beforeWrite in interface org.springframework.batch.core.ItemWriteListener<ContentProperties>
      • onWriteError

        public void onWriteError​(java.lang.Exception exception,
                                 java.util.List<? extends ContentProperties> items)
        Specified by:
        onWriteError in interface org.springframework.batch.core.ItemWriteListener<ContentProperties>
      • write

        public void write​(java.util.List<? extends ContentProperties> items)
                   throws java.lang.Exception
        Specified by:
        write in interface org.springframework.batch.item.ItemWriter<ContentProperties>
        Throws:
        java.lang.Exception