Package com.google.gerrit.entities
Class SubscribeSection
java.lang.Object
com.google.gerrit.entities.SubscribeSection
Portion of a
Project
describing superproject subscription rules.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
appliesTo
(BranchNameKey branch) Determines if thebranch
could trigger a superproject update as allowed via this subscribe section.static SubscribeSection.Builder
builder
(Project.NameKey project) 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.protected abstract com.google.common.collect.ImmutableList<org.eclipse.jgit.transport.RefSpec>
protected abstract com.google.common.collect.ImmutableList<org.eclipse.jgit.transport.RefSpec>
abstract Project.NameKey
project()
abstract SubscribeSection.Builder
final String
toString()
-
Constructor Details
-
SubscribeSection
public SubscribeSection()
-
-
Method Details
-
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
-
toBuilder
-
appliesTo
Determines if thebranch
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
-
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
-