Class ToolSelection

java.lang.Object
hudson.model.AbstractDescribableImpl<ToolSelection>
io.jenkins.plugins.analysis.core.model.ToolSelection
All Implemented Interfaces:
Describable<ToolSelection>

public class ToolSelection extends AbstractDescribableImpl<ToolSelection>
UI proxy to let users select a static analysis report based on the UI.
Author:
Ullrich Hafner
  • Constructor Details

    • ToolSelection

      @DataBoundConstructor public ToolSelection()
      Creates a new instance of ToolSelection.
  • Method Details

    • setId

      @DataBoundSetter public void setId(String id)
      Selects the ID of the static analysis results.
      Parameters:
      id - the ID of the static analysis results
    • getId

      public String getId()
    • getDescriptor

      public ToolSelection.ToolSelectionDescriptor getDescriptor()
    • createToolFilter

      public static Predicate<ResultAction> createToolFilter(boolean canSelectTools, List<ToolSelection> selectedTools)
      Creates a filter that can be used to filter ResultAction instances for a given set of tools.
      Parameters:
      canSelectTools - if true the selection of tools is done by selecting the corresponding IDs, otherwise all available tools in a job are automatically selected
      selectedTools - the tools that should be taken into account
      Returns:
      filter Predicate
    • getIds

      public static String[] getIds(List<ToolSelection> tools)
      Returns all IDs of the specified tools.
      Parameters:
      tools - the tools
      Returns:
      the IDs of the tools