com.atlassian.bamboo.repository
Class RepositoryPredicates

java.lang.Object
  extended by com.atlassian.bamboo.repository.RepositoryPredicates

public class RepositoryPredicates
extends java.lang.Object


Method Summary
static com.google.common.base.Predicate<PlanRepositoryLink> hasPlanRepositoryLinkEqualRepositoryId(long repositoryId)
          Get a predicate that returns true for PlanRepositoryLink which has equal repository id
static com.google.common.base.Predicate<RepositoryDefinition> hasRepositoryDefinitionEqualPluginKey(java.lang.String pluginKey)
          Get a predicate that returns true for RepositoryDefinition which has equal plugin key
static com.google.common.base.Predicate<RepositoryDefinition> isRepositoryDefinitionDefault()
          Get a predicate that returns true for RepositoryDefinition which is has position == 0 (is default)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasPlanRepositoryLinkEqualRepositoryId

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

Parameters:
repositoryId - id to be matched with PlanRepositoryLink.getRepositoryDataEntity()
Returns:
Predicate object

hasRepositoryDefinitionEqualPluginKey

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

Parameters:
pluginKey - pluginKey is to be matched
Returns:
Predicate object

isRepositoryDefinitionDefault

public static com.google.common.base.Predicate<RepositoryDefinition> isRepositoryDefinitionDefault()
Get a predicate that returns true for RepositoryDefinition which is has position == 0 (is default)

Returns:
Predicate object


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.