Class ETLogProjectAction

All Implemented Interfaces:
Action, ModelObject, IconSpec

public class ETLogProjectAction extends AbstractETLogAction
Action to show a link to ETLogReports in side menu of projects.
  • Constructor Details

    • ETLogProjectAction

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

    • getLastBuildAction

      @CheckForNull public ETLogBuildAction getLastBuildAction(org.kohsuke.stapler.StaplerRequest req)
      Returns the ETLogBuildAction 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 ETLogBuildAction or null if no proper build exists
    • getDynamic

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

      Delegates to the last ETLogBuildAction.

      Parameters:
      token - the URL token
      req - the StaplerRequest used for access this action
      Returns:
      the requested ETLogReport 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()