public class ChangeQueryBuilder extends QueryBuilder<ChangeData>
Modifier and Type | Class and Description |
---|---|
static class |
ChangeQueryBuilder.Arguments |
QueryBuilder.Definition<T,Q extends QueryBuilder<T>>, QueryBuilder.Operator, QueryBuilder.OperatorFactory<T,Q extends QueryBuilder<T>>
builderDef
Modifier | Constructor and Description |
---|---|
protected |
ChangeQueryBuilder(QueryBuilder.Definition<ChangeData,? extends QueryBuilder<ChangeData>> def,
ChangeQueryBuilder.Arguments args) |
public static final String FIELD_ADDED
public static final String FIELD_AFTER
public static final String FIELD_AGE
public static final String FIELD_BEFORE
public static final String FIELD_BRANCH
public static final String FIELD_CHANGE
public static final String FIELD_COMMENT
public static final String FIELD_COMMIT
public static final String FIELD_CONFLICTS
public static final String FIELD_DELETED
public static final String FIELD_DELTA
public static final String FIELD_DRAFTBY
public static final String FIELD_FILE
public static final String FIELD_IS
public static final String FIELD_HAS
public static final String FIELD_HASHTAG
public static final String FIELD_LABEL
public static final String FIELD_LIMIT
public static final String FIELD_MERGE
public static final String FIELD_MERGEABLE
public static final String FIELD_MESSAGE
public static final String FIELD_OWNER
public static final String FIELD_OWNERIN
public static final String FIELD_PARENTPROJECT
public static final String FIELD_PATH
public static final String FIELD_PROJECT
public static final String FIELD_PROJECTS
public static final String FIELD_REF
public static final String FIELD_REVIEWER
public static final String FIELD_REVIEWERIN
public static final String FIELD_STARREDBY
public static final String FIELD_STATUS
public static final String FIELD_TOPIC
public static final String FIELD_TR
public static final String FIELD_VISIBLETO
public static final String FIELD_WATCHEDBY
public static final String ARG_ID_USER
public static final String ARG_ID_GROUP
protected ChangeQueryBuilder(QueryBuilder.Definition<ChangeData,? extends QueryBuilder<ChangeData>> def, ChangeQueryBuilder.Arguments args)
public ChangeQueryBuilder asUser(CurrentUser user)
public Predicate<ChangeData> age(String value)
public Predicate<ChangeData> before(String value) throws com.google.gerrit.server.query.QueryParseException
com.google.gerrit.server.query.QueryParseException
public Predicate<ChangeData> until(String value) throws com.google.gerrit.server.query.QueryParseException
com.google.gerrit.server.query.QueryParseException
public Predicate<ChangeData> after(String value) throws com.google.gerrit.server.query.QueryParseException
com.google.gerrit.server.query.QueryParseException
public Predicate<ChangeData> since(String value) throws com.google.gerrit.server.query.QueryParseException
com.google.gerrit.server.query.QueryParseException
public Predicate<ChangeData> change(String query) throws com.google.gerrit.server.query.QueryParseException
com.google.gerrit.server.query.QueryParseException
public Predicate<ChangeData> comment(String value)
public Predicate<ChangeData> status(String statusName)
public Predicate<ChangeData> status_open()
public Predicate<ChangeData> has(String value) throws com.google.gerrit.server.query.QueryParseException
com.google.gerrit.server.query.QueryParseException
public Predicate<ChangeData> is(String value) throws com.google.gerrit.server.query.QueryParseException
com.google.gerrit.server.query.QueryParseException
public Predicate<ChangeData> commit(String id)
public Predicate<ChangeData> conflicts(String value) throws com.google.gwtorm.server.OrmException, com.google.gerrit.server.query.QueryParseException
com.google.gwtorm.server.OrmException
com.google.gerrit.server.query.QueryParseException
public Predicate<ChangeData> p(String name)
public Predicate<ChangeData> project(String name)
public Predicate<ChangeData> projects(String name)
public Predicate<ChangeData> parentproject(String name)
public Predicate<ChangeData> branch(String name)
public Predicate<ChangeData> hashtag(String hashtag)
public Predicate<ChangeData> topic(String name)
public Predicate<ChangeData> ref(String ref)
public Predicate<ChangeData> f(String file)
public Predicate<ChangeData> file(String file)
public Predicate<ChangeData> path(String path)
public Predicate<ChangeData> label(String name) throws com.google.gerrit.server.query.QueryParseException, com.google.gwtorm.server.OrmException
com.google.gerrit.server.query.QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> message(String text)
public Predicate<ChangeData> starredby(String who) throws com.google.gerrit.server.query.QueryParseException, com.google.gwtorm.server.OrmException
com.google.gerrit.server.query.QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> watchedby(String who) throws com.google.gerrit.server.query.QueryParseException, com.google.gwtorm.server.OrmException
com.google.gerrit.server.query.QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> draftby(String who) throws com.google.gerrit.server.query.QueryParseException, com.google.gwtorm.server.OrmException
com.google.gerrit.server.query.QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> visibleto(String who) throws com.google.gerrit.server.query.QueryParseException, com.google.gwtorm.server.OrmException
com.google.gerrit.server.query.QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> visibleto(CurrentUser user)
public Predicate<ChangeData> is_visible() throws com.google.gerrit.server.query.QueryParseException
com.google.gerrit.server.query.QueryParseException
public Predicate<ChangeData> o(String who) throws com.google.gerrit.server.query.QueryParseException, com.google.gwtorm.server.OrmException
com.google.gerrit.server.query.QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> owner(String who) throws com.google.gerrit.server.query.QueryParseException, com.google.gwtorm.server.OrmException
com.google.gerrit.server.query.QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> ownerin(String group) throws com.google.gerrit.server.query.QueryParseException
com.google.gerrit.server.query.QueryParseException
public Predicate<ChangeData> r(String who) throws com.google.gerrit.server.query.QueryParseException, com.google.gwtorm.server.OrmException
com.google.gerrit.server.query.QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> reviewer(String who) throws com.google.gerrit.server.query.QueryParseException, com.google.gwtorm.server.OrmException
com.google.gerrit.server.query.QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> reviewerin(String group) throws com.google.gerrit.server.query.QueryParseException
com.google.gerrit.server.query.QueryParseException
public Predicate<ChangeData> tr(String trackingId)
public Predicate<ChangeData> bug(String trackingId)
public Predicate<ChangeData> limit(String limit) throws com.google.gerrit.server.query.QueryParseException
com.google.gerrit.server.query.QueryParseException
public Predicate<ChangeData> added(String value) throws com.google.gerrit.server.query.QueryParseException
com.google.gerrit.server.query.QueryParseException
public Predicate<ChangeData> deleted(String value) throws com.google.gerrit.server.query.QueryParseException
com.google.gerrit.server.query.QueryParseException
public Predicate<ChangeData> size(String value) throws com.google.gerrit.server.query.QueryParseException
com.google.gerrit.server.query.QueryParseException
public Predicate<ChangeData> delta(String value) throws com.google.gerrit.server.query.QueryParseException
com.google.gerrit.server.query.QueryParseException
protected Predicate<ChangeData> defaultField(String query) throws com.google.gerrit.server.query.QueryParseException
QueryBuilder
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.
defaultField
in class QueryBuilder<ChangeData>
query
- the value supplied by itself in the query.QueryParseException
- the parser does not recognize this value.