Interface Exporter
- 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 TypeMethodDescriptionorg.apache.commons.cli.Option[]Get the options that have to be processed for determining if this command should run.booleanprocess(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
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- Returns:
trueif the export succeeded or was not requested;falseif it failed.
-