Class ChangeIsVisibleToPredicate
java.lang.Object
com.google.gerrit.index.query.Predicate<ChangeData>
com.google.gerrit.index.query.OperatorPredicate<ChangeData>
com.google.gerrit.index.query.IsVisibleToPredicate<ChangeData>
com.google.gerrit.server.query.change.ChangeIsVisibleToPredicate
- All Implemented Interfaces:
Matchable<ChangeData>
-
Nested Class Summary
Nested ClassesNested 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
ConstructorsConstructorDescriptionChangeIsVisibleToPredicate
(PermissionBackend permissionBackend, ProjectCache projectCache, com.google.inject.Provider<AnonymousUser> anonymousUserProvider, CurrentUser user) -
Method Summary
Modifier and TypeMethodDescriptionint
getCost()
Returns a cost estimate to run this predicate, higher figures cost more.boolean
match
(ChangeData cd) Does this predicate match this object?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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.gerrit.index.query.Matchable
matchResult
-
Field Details
-
user
-
projectCache
-
-
Constructor Details
-
ChangeIsVisibleToPredicate
@Inject public ChangeIsVisibleToPredicate(PermissionBackend permissionBackend, ProjectCache projectCache, com.google.inject.Provider<AnonymousUser> anonymousUserProvider, CurrentUser user)
-
-
Method Details