public class SloccountProjectAction extends Object implements Action
Modifier and Type | Field and Description |
---|---|
static int |
CHART_HEIGHT |
static int |
CHART_WIDTH |
Job<?,?> |
project |
static String |
URL_NAME |
Constructor and Description |
---|
SloccountProjectAction(Job<?,?> project,
int numBuildsInGraph) |
Modifier and Type | Method and Description |
---|---|
void |
doIndex(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Redirects the index page to the last result.
|
void |
doTrend(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Display the trend graph.
|
void |
doTrendDelta(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Display the trend delta graph.
|
void |
doTrendDeltaMap(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Display the trend delta map.
|
void |
doTrendMap(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Display the trend map.
|
String |
getDisplayName() |
String |
getIconFileName() |
Run<?,?> |
getLastFinishedBuild()
Returns the last finished build.
|
SloccountBuildAction |
getLastFinishedBuildAction()
Get build action of the last finished build.
|
String |
getUrlName() |
boolean |
hasValidResults() |
public static final String URL_NAME
public static final int CHART_WIDTH
public static final int CHART_HEIGHT
public transient Job<?,?> project
public SloccountProjectAction(Job<?,?> project, int numBuildsInGraph)
public String getIconFileName()
getIconFileName
in interface Action
public String getDisplayName()
getDisplayName
in interface Action
getDisplayName
in interface ModelObject
public String getUrlName()
getUrlName
in interface Action
public void doIndex(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException
request
- Stapler requestresponse
- Stapler responseIOException
- in case of an errorpublic Run<?,?> getLastFinishedBuild()
null
if there is no
such buildpublic SloccountBuildAction getLastFinishedBuildAction()
public final boolean hasValidResults()
public void doTrendMap(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException
request
- Stapler requestresponse
- Stapler responseIOException
- in case of an errorpublic void doTrend(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException
request
- Stapler requestresponse
- Stapler responseIOException
- in case of an errorpublic void doTrendDeltaMap(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException
request
- Stapler requestresponse
- Stapler responseIOException
- in case of an errorpublic void doTrendDelta(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException
request
- Stapler requestresponse
- Stapler responseIOException
- in case of an errorCopyright © 2016–2022. All rights reserved.