Class TaskPredicates

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

@Internal public class TaskPredicates extends Object
  • Method Details

    • 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 @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

      @Deprecated public static com.google.common.base.Predicate<TaskIdentifier> isTaskDefinitionPluginKeyEqual(@NotNull @NotNull String pluginKey)
      Deprecated.
      Get a predicate that returns true for TaskResult which TaskDefinition has equal pluginKey
      Parameters:
      pluginKey - id to be matched in TaskDefinition
      Returns:
      Predicate object
    • isTaskEnabled

      public static com.google.common.base.Predicate<TaskDefinition> isTaskEnabled()
      Get a predicate that returns true for TaskDefinition which is enabled
      Returns:
      Predicate object
    • isTaskResultPluginKeyEqual

      public static com.google.common.base.Predicate<TaskResult> isTaskResultPluginKeyEqual(@NotNull @NotNull 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()
    • isConfigurationFieldEqual

      public static com.google.common.base.Predicate<TaskDefinition> isConfigurationFieldEqual(@NotNull @NotNull String key, @NotNull @NotNull String value)
      Get a predicate that returns true if TaskDefinition.getConfiguration contains key and value equal to passed in parameters.
      Parameters:
      key -
      value -
      Returns:
      Predicate object