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