Class StashRepositoryPredicates
- java.lang.Object
-
- com.atlassian.bamboo.plugins.stash.predicates.StashRepositoryPredicates
-
public class StashRepositoryPredicates extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringPRIMARY_MIRROR
-
Constructor Summary
Constructors Constructor Description StashRepositoryPredicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Predicate<ImmutableChain>branchMonitoringConfigurationMatchesBranchName(@NotNull String vcsBranchName)Predicate that is fulfilled when plan has automatic branch management enabledstatic Predicate<ImmutableChain>defaultRepositoryMatchesQuery(@NotNull CustomVariableContext customVariableContext, @NotNull com.atlassian.stash.rest.client.applinks.ApplinkStashClientFactory applinkStashClientFactory, PlanRepositoryIndex.Query query, @NotNull String mirrorId)Predicate that is fulfilled when chain has default repository matching query.static Predicate<VcsRepositoryData>matchesQuery(@NotNull CustomVariableContext customVariableContext, @NotNull com.atlassian.stash.rest.client.applinks.ApplinkStashClientFactory stashClientFactory, PlanRepositoryIndex.Query query)static Predicate<VcsRepositoryData>usesMirrorWithId(@NotNull String mirrorId)
-
-
-
Field Detail
-
PRIMARY_MIRROR
public static final String PRIMARY_MIRROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
matchesQuery
public static Predicate<VcsRepositoryData> matchesQuery(@NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull com.atlassian.stash.rest.client.applinks.ApplinkStashClientFactory stashClientFactory, @NotNull PlanRepositoryIndex.Query query)
-
defaultRepositoryMatchesQuery
public static Predicate<ImmutableChain> defaultRepositoryMatchesQuery(@NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull com.atlassian.stash.rest.client.applinks.ApplinkStashClientFactory applinkStashClientFactory, @NotNull PlanRepositoryIndex.Query query, @NotNull @NotNull String mirrorId)
Predicate that is fulfilled when chain has default repository matching query.- Parameters:
customVariableContext- empty custom variable contextapplinkStashClientFactory- factory for creating stash clientsquery- query to be matched against repositorymirrorId- mirror id to be matched against repository
-
branchMonitoringConfigurationMatchesBranchName
public static Predicate<ImmutableChain> branchMonitoringConfigurationMatchesBranchName(@NotNull @NotNull String vcsBranchName)
Predicate that is fulfilled when plan has automatic branch management enabled
-
usesMirrorWithId
public static Predicate<VcsRepositoryData> usesMirrorWithId(@NotNull @NotNull String mirrorId)
-
-