Class CSVExportStep

All Implemented Interfaces:
Serializable, Comparable

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

    • CSVExportStep

      public CSVExportStep()
  • Method Details

    • canUndo

      protected boolean canUndo(CronJob cronJob)
      Returns always true, because the CSVExportStep supports the undo-process.
      Overrides:
      canUndo in class Step
      Parameters:
      cronJob - the CronJob, which should be undone
      Returns:
      true
      See Also:
    • 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:
    • 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:
    • 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: