Package com.indusface.plugins.report
Class ReportAction
java.lang.Object
com.indusface.plugins.report.ReportAction
- All Implemented Interfaces:
Action
,ModelObject
The ReportAction class is responsible for fetching and parsing scan reports
and statuses from an external API. It implements the Action interface to
integrate with Jenkins.
-
Constructor Summary
ConstructorsConstructorDescriptionReportAction
(Run<?, ?> run) Constructor to initialize the ReportAction with the specified Jenkins build. -
Method Summary
Modifier and TypeMethodDescriptioncallGetStatusAPI
(String scanlogid, String secretKey) Calls the external API to get the scan status.Fetches the scan status from the external API.Fetches and parses the scan report data from the external API.
-
Constructor Details
-
ReportAction
Constructor to initialize the ReportAction with the specified Jenkins build.- Parameters:
run
- the Jenkins build run
-
-
Method Details
-
getScanStatus
Fetches the scan status from the external API.- Returns:
- the scan status as a ScanApiResponse object
- Throws:
Exception
-
scanReportData
Fetches and parses the scan report data from the external API.- Returns:
- the scan report as a ScanReport object
-
callGetStatusAPI
Calls the external API to get the scan status.- Parameters:
secretKey
- the secret key for authenticationscanlogid
- the scan log ID- Returns:
- the scan status as a ScanApiResponse object
- Throws:
Exception
- if an error occurs during the API call
-
getJobStatus
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-