Class StashRepositoryPredicates

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

public class StashRepositoryPredicates extends Object
  • Field Details

  • 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 context
      applinkStashClientFactory - factory for creating stash clients
      query - query to be matched against repository
      mirrorId - mirror id to be matched against repository
    • usesMirrorWithId

      public static Predicate<VcsRepositoryData> usesMirrorWithId(@NotNull @NotNull String mirrorId)