com.atlassian.bamboo.task
Class TaskPredicates

java.lang.Object
  extended by com.atlassian.bamboo.task.TaskPredicates

public class TaskPredicates
extends java.lang.Object


Method Summary
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> 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(java.lang.String pluginKey)
          Get a predicate that returns true for TaskResult which TaskDefinition has equal pluginKey
static com.google.common.base.Predicate<TaskResult> isTaskResultPluginKeyEqual(java.lang.String pluginKey)
          Get a predicate that returns true for TaskResult which TaskDefinition has equal pluginKey
static com.google.common.base.Predicate<TaskModuleDescriptor> providesExecutableConfiguration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isFinalisingTaskDefinition

public static com.google.common.base.Predicate<TaskDefinition> isFinalisingTaskDefinition()
Get a predicate that returns true for TaskDefinition which are marked as "finalizing"

Returns:
Predicate object

isFinalisingEqual

public 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

Parameters:
isFinalising -
Returns:
Predicate object

hasTaskDefinitionEqualId

public static com.google.common.base.Predicate<TaskDefinition> hasTaskDefinitionEqualId(long id)
Get a predicate that returns true for TaskDefinition which has equal id

Parameters:
id - id to be matched in TaskDefinition
Returns:
Predicate object

hasTaskDefinitionEqualId

public static com.google.common.base.Predicate<TaskDefinition> hasTaskDefinitionEqualId(@NotNull
                                                                                        TaskDefinition taskDefinition)
Get a predicate that returns true for TaskDefinition which has equal id

Parameters:
taskDefinition - TaskDefinition which id is to be matched
Returns:
Predicate object

isTaskDefinitionPluginKeyEqual

public static com.google.common.base.Predicate<TaskIdentifier> isTaskDefinitionPluginKeyEqual(@NotNull
                                                                                              java.lang.String pluginKey)
Get a predicate that returns true for TaskResult which TaskDefinition has equal pluginKey

Parameters:
pluginKey - id to be matched in TaskDefinition
Returns:
Predicate object

isTaskResultPluginKeyEqual

public static com.google.common.base.Predicate<TaskResult> isTaskResultPluginKeyEqual(@NotNull
                                                                                      java.lang.String pluginKey)
Get a predicate that returns true for TaskResult which TaskDefinition has equal pluginKey

Parameters:
pluginKey - id to be matched in TaskDefinition
Returns:
Predicate object

providesExecutableConfiguration

public static com.google.common.base.Predicate<TaskModuleDescriptor> providesExecutableConfiguration()


Copyright © 2012 Atlassian. All Rights Reserved.