Class ProjectIsVisibleToPredicate
java.lang.Object
com.google.gerrit.index.query.Predicate<T>
com.google.gerrit.index.query.OperatorPredicate<T>
com.google.gerrit.index.query.IsVisibleToPredicate<com.google.gerrit.index.project.ProjectData>
com.google.gerrit.server.query.project.ProjectIsVisibleToPredicate
- All Implemented Interfaces:
Matchable<com.google.gerrit.index.project.ProjectData>
public class ProjectIsVisibleToPredicate
extends IsVisibleToPredicate<com.google.gerrit.index.project.ProjectData>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.index.query.Predicate
Predicate.Any<T>
-
Field Summary
FieldsFields inherited from class com.google.gerrit.index.query.OperatorPredicate
name, value
-
Constructor Summary
ConstructorsConstructorDescriptionProjectIsVisibleToPredicate
(PermissionBackend permissionBackend, CurrentUser user) -
Method Summary
Methods inherited from class com.google.gerrit.index.query.OperatorPredicate
copy, equals, getOperator, getValue, hashCode, toString
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getChild, getChildCount, getChildren, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, isMatchable, not, or, or, supportedForQueries
-
Field Details
-
permissionBackend
-
user
-
-
Constructor Details
-
ProjectIsVisibleToPredicate
-
-
Method Details
-
match
public boolean match(com.google.gerrit.index.project.ProjectData pd) Description copied from interface:Matchable
Does this predicate match this object? -
getCost
public int getCost()Description copied from interface:Matchable
Returns a cost estimate to run this predicate, higher figures cost more.
-