Class ReportGeneratorProjectAction
- java.lang.Object
-
- de.tracetronic.jenkins.plugins.ecutest.report.AbstractRequestHandler
-
- de.tracetronic.jenkins.plugins.ecutest.report.AbstractReportAction
-
- de.tracetronic.jenkins.plugins.ecutest.report.generator.AbstractReportGeneratorAction
-
- de.tracetronic.jenkins.plugins.ecutest.report.generator.ReportGeneratorProjectAction
-
- All Implemented Interfaces:
Action
,ModelObject
,IconSpec
public class ReportGeneratorProjectAction extends AbstractReportGeneratorAction
Action to show a link toGeneratorReport
s in side menu of projects.
-
-
Constructor Summary
Constructors Constructor Description ReportGeneratorProjectAction(boolean projectLevel)
Instantiates a newReportGeneratorProjectAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
GeneratorReport
getDynamic(String token, org.kohsuke.stapler.StaplerRequest req)
ReturnsGeneratorReport
specified by the URL.String
getIconFileName()
ReportGeneratorBuildAction
getLastBuildAction(org.kohsuke.stapler.StaplerRequest req)
Returns theReportGeneratorBuildAction
in the last build that have artifact documents.-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.report.generator.AbstractReportGeneratorAction
getIconClassName, getLastReportBuild, getUrlName
-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.report.AbstractReportAction
getArchiveTargetDir, getBuild, isProjectLevel
-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.report.AbstractRequestHandler
doZipDownload, getAnchestorBuild, getAnchestorProject, getBuildAction, getOwner
-
-
-
-
Constructor Detail
-
ReportGeneratorProjectAction
public ReportGeneratorProjectAction(boolean projectLevel)
Instantiates a newReportGeneratorProjectAction
.- Parameters:
projectLevel
- specifies whether archiving is restricted to project level only
-
-
Method Detail
-
getLastBuildAction
@CheckForNull public ReportGeneratorBuildAction getLastBuildAction(org.kohsuke.stapler.StaplerRequest req)
Returns theReportGeneratorBuildAction
in the last build that have artifact documents.Resolves the owner by
StaplerRequest.findAncestorObject(Class)
.- Parameters:
req
- theStaplerRequest
used for access this action- Returns:
- the last
ReportGeneratorBuildAction
ornull
if no proper build exists
-
getDynamic
public GeneratorReport getDynamic(String token, org.kohsuke.stapler.StaplerRequest req)
ReturnsGeneratorReport
specified by the URL.Delegates to the last
ReportGeneratorBuildAction
.- Parameters:
token
- the URL tokenreq
- theStaplerRequest
used for access this action- Returns:
- the requested
GeneratorReport
ornull
if no proper report exists
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
- Overrides:
getIconFileName
in classAbstractReportAction
-
getDisplayName
public String getDisplayName()
-
-