@Internal public class TaskPredicates extends Object
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Predicate<TaskDefinition> |
hasTaskDefinitionEqualId(long id)
Get a predicate that returns true for
TaskDefinition which has equal id |
static com.google.common.base.Predicate<TaskDefinition> |
hasTaskDefinitionEqualId(TaskDefinition taskDefinition)
Get a predicate that returns true for
TaskDefinition which has equal id |
static com.google.common.base.Predicate<TaskDefinition> |
isConfigurationFieldEqual(String key,
String value)
Get a predicate that returns true if TaskDefinition.getConfiguration contains key and value equal to passed in
parameters.
|
static com.google.common.base.Predicate<TaskDefinition> |
isFinalisingEqual(boolean isFinalising)
Get a predicate that returns true if TaskDefinition.isFinalisingTask is equal to passed as parameter
|
static com.google.common.base.Predicate<TaskDefinition> |
isFinalisingTaskDefinition()
Get a predicate that returns true for TaskDefinition which are marked as "finalizing"
|
static com.google.common.base.Predicate<TaskIdentifier> |
isTaskDefinitionPluginKeyEqual(String pluginKey)
Deprecated.
since 5.15, use
BambooPluginUtils.pluginKeyEquals(String) |
static com.google.common.base.Predicate<TaskDefinition> |
isTaskEnabled()
Get a predicate that returns true for
TaskDefinition which is enabled |
static com.google.common.base.Predicate<TaskResult> |
isTaskResultPluginKeyEqual(String pluginKey)
Get a predicate that returns true for
TaskResult which TaskDefinition has equal pluginKey |
static com.google.common.base.Predicate<TaskModuleDescriptor> |
providesExecutableConfiguration() |
public static com.google.common.base.Predicate<TaskDefinition> isFinalisingTaskDefinition()
public static com.google.common.base.Predicate<TaskDefinition> isFinalisingEqual(boolean isFinalising)
isFinalising
- public static com.google.common.base.Predicate<TaskDefinition> hasTaskDefinitionEqualId(long id)
TaskDefinition
which has equal idid
- id to be matched in TaskDefinition
public static com.google.common.base.Predicate<TaskDefinition> hasTaskDefinitionEqualId(@NotNull TaskDefinition taskDefinition)
TaskDefinition
which has equal idtaskDefinition
- TaskDefinition
which id is to be matched@Deprecated public static com.google.common.base.Predicate<TaskIdentifier> isTaskDefinitionPluginKeyEqual(@NotNull String pluginKey)
BambooPluginUtils.pluginKeyEquals(String)
TaskResult
which TaskDefinition
has equal pluginKeypluginKey
- id to be matched in TaskDefinition
public static com.google.common.base.Predicate<TaskDefinition> isTaskEnabled()
TaskDefinition
which is enabledpublic static com.google.common.base.Predicate<TaskResult> isTaskResultPluginKeyEqual(@NotNull String pluginKey)
TaskResult
which TaskDefinition
has equal pluginKeypluginKey
- id to be matched in TaskDefinition
public static com.google.common.base.Predicate<TaskModuleDescriptor> providesExecutableConfiguration()
public static com.google.common.base.Predicate<TaskDefinition> isConfigurationFieldEqual(@NotNull String key, @NotNull String value)
key
- value
- Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.