com.atlassian.bamboo.plugins.stash.predicates
Class StashRepositoryPredicates

java.lang.Object
  extended by com.atlassian.bamboo.plugins.stash.predicates.StashRepositoryPredicates

public class StashRepositoryPredicates
extends Object


Constructor Summary
StashRepositoryPredicates()
           
 
Method Summary
static com.google.common.base.Predicate<ImmutableChain> branchMonitoringConfigurationBuildsPullRequests()
          Predicate that is fulfilled when plan has pull request builds enabled
static com.google.common.base.Predicate<ImmutableChain> branchMonitoringConfigurationMatchesBranchName(String vcsBranchName)
          Predicate that is fulfilled when plan has automatic branch management enabled
static com.google.common.base.Predicate<ImmutableChain> defaultRepositoryMatchesQuery(CustomVariableContext customVariableContext, PlanRepositoryIndex.Query query)
          Predicate that is fulfilled when chain has default repository matching query.
static com.google.common.base.Predicate<StashRepository> matchesQuery(CustomVariableContext customVariableContext, PlanRepositoryIndex.Query query)
          Predicate that is fulfilled when repository matches query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StashRepositoryPredicates

public StashRepositoryPredicates()
Method Detail

matchesQuery

public static com.google.common.base.Predicate<StashRepository> matchesQuery(@NotNull
                                                                             CustomVariableContext customVariableContext,
                                                                             @NotNull
                                                                             PlanRepositoryIndex.Query query)
Predicate that is fulfilled when repository matches query.

Parameters:
customVariableContext - custom variable context with plan set already
query - query to be matched against repository

defaultRepositoryMatchesQuery

public static com.google.common.base.Predicate<ImmutableChain> defaultRepositoryMatchesQuery(@NotNull
                                                                                             CustomVariableContext customVariableContext,
                                                                                             @NotNull
                                                                                             PlanRepositoryIndex.Query query)
Predicate that is fulfilled when chain has default repository matching query.

Parameters:
customVariableContext - empty custom variable context
query - query to be matched against repository

branchMonitoringConfigurationMatchesBranchName

public static com.google.common.base.Predicate<ImmutableChain> branchMonitoringConfigurationMatchesBranchName(@NotNull
                                                                                                              String vcsBranchName)
Predicate that is fulfilled when plan has automatic branch management enabled


branchMonitoringConfigurationBuildsPullRequests

public static com.google.common.base.Predicate<ImmutableChain> branchMonitoringConfigurationBuildsPullRequests()
Predicate that is fulfilled when plan has pull request builds enabled



Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.