Package com.google.gerrit.common.data
Class SubscribeSection
- java.lang.Object
-
- com.google.gerrit.common.data.SubscribeSection
-
-
Constructor Summary
Constructors Constructor Description SubscribeSection(Project.NameKey p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMatchingRefSpec(String spec)
void
addMatchingRefSpec(org.eclipse.jgit.transport.RefSpec spec)
void
addMultiMatchRefSpec(String spec)
boolean
appliesTo(BranchNameKey branch)
Determines if thebranch
could trigger a superproject update as allowed via this subscribe section.Collection<org.eclipse.jgit.transport.RefSpec>
getMatchingRefSpecs()
Collection<org.eclipse.jgit.transport.RefSpec>
getMultiMatchRefSpecs()
Project.NameKey
getProject()
String
toString()
-
-
-
Constructor Detail
-
SubscribeSection
public SubscribeSection(Project.NameKey p)
-
-
Method Detail
-
addMatchingRefSpec
public void addMatchingRefSpec(org.eclipse.jgit.transport.RefSpec spec)
-
addMatchingRefSpec
public void addMatchingRefSpec(String spec)
-
addMultiMatchRefSpec
public void addMultiMatchRefSpec(String spec)
-
getProject
public Project.NameKey getProject()
-
appliesTo
public boolean appliesTo(BranchNameKey branch)
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
-
getMatchingRefSpecs
public Collection<org.eclipse.jgit.transport.RefSpec> getMatchingRefSpecs()
-
getMultiMatchRefSpecs
public Collection<org.eclipse.jgit.transport.RefSpec> getMultiMatchRefSpecs()
-
-