Klasse ToolSelection
java.lang.Object
hudson.model.AbstractDescribableImpl<ToolSelection>
io.jenkins.plugins.analysis.core.model.ToolSelection
- Alle implementierten Schnittstellen:
Describable<ToolSelection>
UI proxy to let users select a static analysis report based on the UI.
- Autor:
- Ullrich Hafner
-
Verschachtelte Klassen - Übersicht
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic Predicate
<ResultAction> createToolFilter
(boolean canSelectTools, List<ToolSelection> selectedTools) Creates a filter that can be used to filterResultAction
instances for a given set of tools.getId()
static String[]
getIds
(List<ToolSelection> tools) Returns all IDs of the specified tools.void
Selects the ID of the static analysis results.
-
Konstruktordetails
-
ToolSelection
@DataBoundConstructor public ToolSelection()Creates a new instance ofToolSelection
.
-
-
Methodendetails
-
setId
Selects the ID of the static analysis results.- Parameter:
id
- the ID of the static analysis results
-
getId
-
getDescriptor
- Angegeben von:
getDescriptor
in SchnittstelleDescribable<ToolSelection>
- Setzt außer Kraft:
getDescriptor
in KlasseAbstractDescribableImpl<ToolSelection>
-
createToolFilter
public static Predicate<ResultAction> createToolFilter(boolean canSelectTools, List<ToolSelection> selectedTools) Creates a filter that can be used to filterResultAction
instances for a given set of tools.- Parameter:
canSelectTools
- iftrue
the 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- Gibt zurück:
- filter
Predicate
-
getIds
Returns all IDs of the specified tools.- Parameter:
tools
- the tools- Gibt zurück:
- the IDs of the tools
-