Class ToolSelection
java.lang.Object
hudson.model.AbstractDescribableImpl<ToolSelection>
io.jenkins.plugins.analysis.core.model.ToolSelection
- All Implemented Interfaces:
Describable<ToolSelection>
UI proxy to let users select a static analysis report based on the UI.
- Author:
- Ullrich Hafner
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Predicate<ResultAction>createToolFilter(boolean canSelectTools, List<ToolSelection> selectedTools) Creates a filter that can be used to filterResultActioninstances for a given set of tools.getId()static String[]getIds(List<ToolSelection> tools) Returns all IDs of the specified tools.voidSelects the ID of the static analysis results.
-
Constructor Details
-
ToolSelection
@DataBoundConstructor public ToolSelection()Creates a new instance ofToolSelection.
-
-
Method Details
-
setId
Selects the ID of the static analysis results.- Parameters:
id- the ID of the static analysis results
-
getId
-
getDescriptor
-
createToolFilter
public static Predicate<ResultAction> createToolFilter(boolean canSelectTools, List<ToolSelection> selectedTools) Creates a filter that can be used to filterResultActioninstances for a given set of tools.- Parameters:
canSelectTools- iftruethe selection of tools is done by selecting the corresponding IDs, otherwise all available tools in a job are automatically selectedselectedTools- the tools that should be taken into account- Returns:
- filter
Predicate
-
getIds
Returns all IDs of the specified tools.- Parameters:
tools- the tools- Returns:
- the IDs of the tools
-