Class GroupQueryBuilder
- java.lang.Object
- 
- com.google.gerrit.index.query.QueryBuilder<InternalGroup,GroupQueryBuilder>
- 
- com.google.gerrit.server.query.group.GroupQueryBuilder
 
 
- 
 public class GroupQueryBuilder extends QueryBuilder<InternalGroup,GroupQueryBuilder> Parses a query string meant to be applied to group objects.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classGroupQueryBuilder.Arguments- 
Nested classes/interfaces inherited from class com.google.gerrit.index.query.QueryBuilderQueryBuilder.Definition<T,Q extends QueryBuilder<T,Q>>, QueryBuilder.Operator, QueryBuilder.OperatorFactory<T,Q extends QueryBuilder<T,Q>>
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static StringFIELD_DESCRIPTIONstatic StringFIELD_INNAMEstatic StringFIELD_LIMITstatic StringFIELD_NAMEstatic StringFIELD_OWNERstatic StringFIELD_UUID- 
Fields inherited from class com.google.gerrit.index.query.QueryBuilderbuilderDef, opAliases
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Predicate<InternalGroup>defaultField(String query)Handle a value present outside of an operator.Predicate<InternalGroup>description(String description)Predicate<InternalGroup>inname(String namePart)Predicate<InternalGroup>is(String value)Predicate<InternalGroup>limit(String query)Predicate<InternalGroup>member(String query)Predicate<InternalGroup>name(String name)Predicate<InternalGroup>owner(String owner)Predicate<InternalGroup>subgroup(String query)Predicate<InternalGroup>uuid(String uuid)- 
Methods inherited from class com.google.gerrit.index.query.QueryBuildererror, error, find, find, parse, parse, setOperatorAliases
 
- 
 
- 
- 
- 
Field Detail- 
FIELD_UUIDpublic static final String FIELD_UUID - See Also:
- Constant Field Values
 
 - 
FIELD_DESCRIPTIONpublic static final String FIELD_DESCRIPTION - See Also:
- Constant Field Values
 
 - 
FIELD_INNAMEpublic static final String FIELD_INNAME - See Also:
- Constant Field Values
 
 - 
FIELD_NAMEpublic static final String FIELD_NAME - See Also:
- Constant Field Values
 
 - 
FIELD_OWNERpublic static final String FIELD_OWNER - See Also:
- Constant Field Values
 
 - 
FIELD_LIMITpublic static final String FIELD_LIMIT - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
uuidpublic Predicate<InternalGroup> uuid(String uuid) 
 - 
descriptionpublic Predicate<InternalGroup> description(String description) throws QueryParseException - Throws:
- QueryParseException
 
 - 
innamepublic Predicate<InternalGroup> inname(String namePart) 
 - 
namepublic Predicate<InternalGroup> name(String name) 
 - 
ownerpublic Predicate<InternalGroup> owner(String owner) throws QueryParseException - Throws:
- QueryParseException
 
 - 
ispublic Predicate<InternalGroup> is(String value) throws QueryParseException - Throws:
- QueryParseException
 
 - 
defaultFieldprotected Predicate<InternalGroup> defaultField(String query) throws QueryParseException Description copied from class:QueryBuilderHandle a value present outside of an operator.This default implementation always throws an "Unsupported query: " message containing the input text. Subclasses may override this method to perform do-what-i-mean guesses based on the input string. - Overrides:
- defaultFieldin class- QueryBuilder<InternalGroup,GroupQueryBuilder>
- Parameters:
- query- the value supplied by itself in the query.
- Returns:
- predicate representing this value.
- Throws:
- QueryParseException- the parser does not recognize this value.
 
 - 
memberpublic Predicate<InternalGroup> member(String query) throws QueryParseException, org.eclipse.jgit.errors.ConfigInvalidException, IOException - Throws:
- QueryParseException
- org.eclipse.jgit.errors.ConfigInvalidException
- IOException
 
 - 
subgrouppublic Predicate<InternalGroup> subgroup(String query) throws QueryParseException - Throws:
- QueryParseException
 
 - 
limitpublic Predicate<InternalGroup> limit(String query) throws QueryParseException - Throws:
- QueryParseException
 
 
- 
 
-