Package com.google.gerrit.server.project
Class SectionMatcher
- java.lang.Object
-
- com.google.gerrit.server.project.RefPatternMatcher
-
- com.google.gerrit.server.project.SectionMatcher
-
public class SectionMatcher extends RefPatternMatcher
Matches an AccessSection against a reference name.These matchers are "compiled" versions of the AccessSection name, supporting faster selection of which sections are relevant to any given input reference.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gerrit.server.project.RefPatternMatcher
RefPatternMatcher.ExpandParameters
-
-
Constructor Summary
Constructors Constructor Description SectionMatcher(Project.NameKey project, AccessSection section, RefPatternMatcher matcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RefPatternMatcher
getMatcher()
Project.NameKey
getProject()
AccessSection
getSection()
boolean
match(String ref, CurrentUser user)
-
Methods inherited from class com.google.gerrit.server.project.RefPatternMatcher
getMatcher, getMatcher
-
-
-
-
Constructor Detail
-
SectionMatcher
public SectionMatcher(Project.NameKey project, AccessSection section, RefPatternMatcher matcher)
-
-
Method Detail
-
match
public boolean match(String ref, CurrentUser user)
- Specified by:
match
in classRefPatternMatcher
-
getSection
public AccessSection getSection()
-
getMatcher
public RefPatternMatcher getMatcher()
-
getProject
public Project.NameKey getProject()
-
-