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

public interface Exporter
Interface for providing export functionality to the sparta cli.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.commons.cli.Option[]
    Get the options that have to be processed for determining if this command should run.
    void
    process(org.apache.commons.cli.CommandLine cmd, Collection<Threat> results)
    Process the parsed options and run the export if needed on the provided collection of threats.
  • Method Details

    • getOptions

      org.apache.commons.cli.Option[] getOptions()
      Get the options that have to be processed for determining if this command should run.
      Returns:
      the array of options this command relies upon.
    • process

      void process(org.apache.commons.cli.CommandLine cmd, Collection<Threat> results)
      Process the parsed options and run the export if needed on the provided collection of threats.
      Parameters:
      cmd - the processed command line options.
      results - the collection of threats to export