Class AnchoreProjectAction
- java.lang.Object
-
- com.anchore.jenkins.plugins.anchore.AnchoreProjectAction
-
- All Implemented Interfaces:
Action
,ModelObject
public class AnchoreProjectAction extends Object implements Action
Project action object which displays the trend report on the project top page.
-
-
Constructor Summary
Constructors Constructor Description AnchoreProjectAction(Job<?,?> job)
Create new AnchoreProjectAction instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doIndex(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
Redirects the index page to the last report.String
getDisplayName()
String
getIconFileName()
AnchoreAction
getLastAnchoreAction()
Graph
getTrendGraph()
Generates the Anchore trend graphString
getUrlName()
-
-
-
Field Detail
-
job
public final Job<?,?> job
Parent that owns this action.
-
-
Constructor Detail
-
AnchoreProjectAction
public AnchoreProjectAction(Job<?,?> job)
Create new AnchoreProjectAction instance.- Parameters:
job
- instance of Jenkins Job
-
-
Method Detail
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
doIndex
public void doIndex(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException
Redirects the index page to the last report.- Parameters:
request
- Stapler requestresponse
- Stapler response- Throws:
IOException
- in case of an error
-
getLastAnchoreAction
public AnchoreAction getLastAnchoreAction()
- Returns:
- the most current AnchoreAction of the associated job
-
getTrendGraph
public Graph getTrendGraph()
Generates the Anchore trend graph- Returns:
- graph object
-
-