public class ResultAction extends Object implements jenkins.model.RunAction2, Serializable
| Constructor and Description |
|---|
ResultAction(ArrayList<Finding> findings,
SeverityDistribution severityDistribution) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName() |
List<Finding> |
getFindings() |
net.sf.json.JSONObject |
getFindingsJson()
Returns the UI model for an ECharts line chart that shows the findings.
|
String |
getIconFileName() |
hudson.model.Run |
getRun() |
SeverityDistribution |
getSeverityDistribution() |
net.sf.json.JSONObject |
getSeverityDistributionJson()
Returns a JSON response with the statistics for severity.
|
String |
getUrlName() |
void |
onAttached(hudson.model.Run<?,?> run) |
void |
onLoad(hudson.model.Run<?,?> run) |
public ResultAction(ArrayList<Finding> findings, SeverityDistribution severityDistribution)
public String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getUrlName()
getUrlName in interface hudson.model.Actionpublic void onAttached(hudson.model.Run<?,?> run)
onAttached in interface jenkins.model.RunAction2public void onLoad(hudson.model.Run<?,?> run)
onLoad in interface jenkins.model.RunAction2public hudson.model.Run getRun()
public SeverityDistribution getSeverityDistribution()
@JavaScriptMethod public net.sf.json.JSONObject getFindingsJson()
@JavaScriptMethod public net.sf.json.JSONObject getSeverityDistributionJson()
Copyright © 2018–2019 OWASP. All rights reserved.