All Known Implementing Classes:
ExportCSV, ExportReport, ExportStatistics, ExportTXT, ExportXLSX, SubmitToSpartaServer

public interface Exporter
A single export step of the sparta cli. Implementations are constructed with their (already parsed and typed) target and only run when the corresponding option was actually provided — the option-to-exporter wiring lives in the command class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Run the export on the provided collection of threats.
  • Method Details

    • export

      boolean export(Collection<Threat> results)
      Run the export on the provided collection of threats.
      Parameters:
      results - the collection of threats to export
      Returns:
      true if the export succeeded; false if it failed.