Class SubscribeSection

java.lang.Object
com.google.gerrit.entities.SubscribeSection

public abstract class SubscribeSection extends Object
Portion of a Project describing superproject subscription rules.
  • Constructor Details

    • SubscribeSection

      public SubscribeSection()
  • Method Details

    • project

      public abstract Project.NameKey project()
    • matchingRefSpecs

      protected abstract com.google.common.collect.ImmutableList<org.eclipse.jgit.transport.RefSpec> matchingRefSpecs()
    • multiMatchRefSpecs

      protected abstract com.google.common.collect.ImmutableList<org.eclipse.jgit.transport.RefSpec> multiMatchRefSpecs()
    • builder

      public static SubscribeSection.Builder builder(Project.NameKey project)
    • toBuilder

      public abstract SubscribeSection.Builder toBuilder()
    • appliesTo

      public boolean appliesTo(BranchNameKey branch)
      Determines if the branch could trigger a superproject update as allowed via this subscribe section.
      Parameters:
      branch - the branch to check
      Returns:
      if the branch could trigger a superproject update
    • matchingRefSpecsAsString

      public Collection<String> matchingRefSpecsAsString()
    • multiMatchRefSpecsAsString

      public Collection<String> multiMatchRefSpecsAsString()
    • getDestinationBranches

      public com.google.common.collect.ImmutableSet<BranchNameKey> getDestinationBranches(BranchNameKey src, Collection<org.eclipse.jgit.lib.Ref> allRefsInRefsHeads)
      Evaluates what the destination branches for the subscription are.
    • toString

      public final String toString()
      Overrides:
      toString in class Object