Class ATXProjectAction<T extends AbstractTestReport>
- java.lang.Object
-
- de.tracetronic.jenkins.plugins.ecutest.report.AbstractRequestHandler
-
- de.tracetronic.jenkins.plugins.ecutest.report.AbstractReportAction
-
- de.tracetronic.jenkins.plugins.ecutest.report.atx.AbstractATXAction
-
- de.tracetronic.jenkins.plugins.ecutest.report.atx.ATXProjectAction<T>
-
- Type Parameters:
T
- the report type, eitherATXReport
orATXZipReport
- All Implemented Interfaces:
Action
,ModelObject
,IconSpec
public class ATXProjectAction<T extends AbstractTestReport> extends AbstractATXAction
Action to show a link toATXReport
s in side menu of projects.
-
-
Constructor Summary
Constructors Constructor Description ATXProjectAction(boolean projectLevel)
Instantiates a newATXProjectAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
T
getDynamic(String token, org.kohsuke.stapler.StaplerRequest req)
ReturnsATXReport
specified by the URL.String
getIconFileName()
ATXBuildAction<T>
getLastBuildAction(org.kohsuke.stapler.StaplerRequest req)
Returns theATXBuildAction
in the last build that have artifact documents.-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.report.atx.AbstractATXAction
getIconClassName, getLastReportBuild, getReportIconClassName, getTrendIconClassName, 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
-
ATXProjectAction
public ATXProjectAction(boolean projectLevel)
Instantiates a newATXProjectAction
.- Parameters:
projectLevel
- specifies whether archiving is restricted to project level only
-
-
Method Detail
-
getLastBuildAction
@CheckForNull public ATXBuildAction<T> getLastBuildAction(org.kohsuke.stapler.StaplerRequest req)
Returns theATXBuildAction
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
ATXBuildAction
ornull
if no proper build exists
-
getDynamic
public T getDynamic(String token, org.kohsuke.stapler.StaplerRequest req)
ReturnsATXReport
specified by the URL.Delegates to the last
ATXBuildAction
.- Parameters:
token
- the URL tokenreq
- theStaplerRequest
used for access this action- Returns:
- the requested
ATXReport
ornull
if no proper report exists
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
- Overrides:
getIconFileName
in classAbstractReportAction
-
getDisplayName
public String getDisplayName()
-
-