Class CSVExportStep

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable

    public class CSVExportStep
    extends GeneratedCSVExportStep
    Step which implements an CVS based export.
    See Also:
    Serialized Form
    • Constructor Detail

      • CSVExportStep

        public CSVExportStep()
    • Method Detail

      • undoStep

        protected void undoStep​(CronJob cronJob)
        Removes the assigned JobMedia of the specified CronJob.
        Specified by:
        undoStep in class Step
        Parameters:
        cronJob - the CronJob which should undone
        See Also:
        Step.canUndo(CronJob)
      • prepareMedia

        protected JobMedia prepareMedia​(CronJob cronJob)
        Prepares the JobMedia of the specified Cronjob for the execution of the CSVExportStep.

        The preparation consists of the following steps:

        • If no JobMedia is assigned, a new JobMedia is created.
        • The mimetype of the JobMedia is set to "application/zip"
        • The real filename is set to "CSVExportyyyyMMdd_hhmmss.zip"
        Overrides:
        prepareMedia in class MediaProcessorStep
        Parameters:
        cronJob - the CronJob, whose JobMedia should be prepared
        Returns:
        the prepared JobMedia
      • performStep

        protected void performStep​(CronJob cronJob)
        Starts the execution of the CSVExportStep using the specified CronJob.
        Specified by:
        performStep in class Step
        Parameters:
        cronJob - which will be used to perform the Step
        See Also:
        Step.canPerform(CronJob)
      • isAbortable

        public boolean isAbortable()
        Description copied from class: Step
        Returns true, if this Step is abortable.

        The default implementation returns always false. To mark your Step subclass as abortable, override this method and return true.

        Overrides:
        isAbortable in class Step
        Returns:
        true, if this Step is abortable
        See Also:
        Step.isAbortable()