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> 
- 
- 
Field SummaryFields Modifier and Type Field Description protected PermissionBackendpermissionBackendprotected CurrentUseruser- 
Fields inherited from class com.google.gerrit.index.query.OperatorPredicatename, value
 
- 
 - 
Constructor SummaryConstructors Constructor Description ProjectIsVisibleToPredicate(PermissionBackend permissionBackend, CurrentUser user)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCost()booleanmatch(com.google.gerrit.index.project.ProjectData pd)Does this predicate match this object?- 
Methods inherited from class com.google.gerrit.index.query.OperatorPredicatecopy, equals, getOperator, getValue, hashCode, toString
 - 
Methods inherited from class com.google.gerrit.index.query.Predicateand, and, any, asMatchable, estimateCost, getChild, getChildCount, getChildren, getLeafCount, isMatchable, not, or, or
 
- 
 
- 
- 
- 
Field Detail- 
permissionBackendprotected final PermissionBackend permissionBackend 
 - 
userprotected final CurrentUser user 
 
- 
 - 
Constructor Detail- 
ProjectIsVisibleToPredicatepublic ProjectIsVisibleToPredicate(PermissionBackend permissionBackend, CurrentUser user) 
 
- 
 - 
Method Detail- 
matchpublic boolean match(com.google.gerrit.index.project.ProjectData pd) Description copied from interface:MatchableDoes this predicate match this object?
 - 
getCostpublic int getCost() - Returns:
- a cost estimate to run this predicate, higher figures cost more.
 
 
- 
 
-