Class ATXProjectAction<T extends AbstractTestReport>

Type Parameters:
T - the report type, either ATXReport or ATXZipReport
All Implemented Interfaces:
Action, ModelObject, IconSpec

public class ATXProjectAction<T extends AbstractTestReport> extends AbstractATXAction
Action to show a link to ATXReports in side menu of projects.
  • Constructor Details

    • ATXProjectAction

      public ATXProjectAction(boolean projectLevel)
      Instantiates a new ATXProjectAction.
      Parameters:
      projectLevel - specifies whether archiving is restricted to project level only
  • Method Details

    • getLastBuildAction

      @CheckForNull public ATXBuildAction<T> getLastBuildAction(org.kohsuke.stapler.StaplerRequest req)
      Returns the ATXBuildAction in the last build that have artifact documents.

      Resolves the owner by StaplerRequest.findAncestorObject(Class).

      Parameters:
      req - the StaplerRequest used for access this action
      Returns:
      the last ATXBuildAction or null if no proper build exists
    • getDynamic

      public T getDynamic(String token, org.kohsuke.stapler.StaplerRequest req)
      Returns ATXReport specified by the URL.

      Delegates to the last ATXBuildAction.

      Parameters:
      token - the URL token
      req - the StaplerRequest used for access this action
      Returns:
      the requested ATXReport or null if no proper report exists
    • getIconFileName

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
      Overrides:
      getIconFileName in class AbstractReportAction
    • getDisplayName

      public String getDisplayName()