Class StashRepositoryPredicates
java.lang.Object
com.atlassian.bamboo.plugins.stash.predicates.StashRepositoryPredicates
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
PRIMARY_MIRROR
- See Also:
-
-
Constructor Details
-
StashRepositoryPredicates
public StashRepositoryPredicates()
-
-
Method Details
-
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
-
usesMirrorWithId
-