public class ChangeQueryBuilder extends QueryBuilder<ChangeData>
Modifier and Type | Class and Description |
---|---|
static class |
ChangeQueryBuilder.Arguments |
static interface |
ChangeQueryBuilder.ChangeHasOperandFactory |
static interface |
ChangeQueryBuilder.ChangeOperatorFactory |
QueryBuilder.Definition<T,Q extends QueryBuilder<T>>, QueryBuilder.Operator, QueryBuilder.OperatorFactory<T,Q extends QueryBuilder<T>>
builderDef, opFactories
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_AGE
public static final String FIELD_ASSIGNEE
public static final String FIELD_AUTHOR
public static final String FIELD_BEFORE
public static final String FIELD_CHANGE
public static final String FIELD_CHANGE_ID
public static final String FIELD_COMMENT
public static final String FIELD_COMMENTBY
public static final String FIELD_COMMIT
public static final String FIELD_COMMITTER
public static final String FIELD_CONFLICTS
public static final String FIELD_DELETED
public static final String FIELD_DELTA
public static final String FIELD_DESTINATION
public static final String FIELD_DRAFTBY
public static final String FIELD_EDITBY
public static final String FIELD_EXACTCOMMIT
public static final String FIELD_FILE
public static final String FIELD_FILEPART
public static final String FIELD_GROUP
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_REVIEWEDBY
public static final String FIELD_REVIEWER
public static final String FIELD_REVIEWERIN
public static final String FIELD_STAR
public static final String FIELD_STARBY
public static final String FIELD_STARREDBY
public static final String FIELD_STATUS
public static final String FIELD_SUBMISSIONID
public static final String FIELD_TR
public static final String FIELD_UNRESOLVED_COMMENT_COUNT
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
public static final String ARG_ID_OWNER
public static final Account.Id OWNER_ACCOUNT_ID
protected ChangeQueryBuilder(QueryBuilder.Definition<ChangeData,? extends QueryBuilder<ChangeData>> def, ChangeQueryBuilder.Arguments args)
public ChangeQueryBuilder.Arguments getArgs()
public ChangeQueryBuilder asUser(CurrentUser user)
public Predicate<ChangeData> age(String value)
public Predicate<ChangeData> before(String value) throws QueryParseException
QueryParseException
public Predicate<ChangeData> until(String value) throws QueryParseException
QueryParseException
public Predicate<ChangeData> after(String value) throws QueryParseException
QueryParseException
public Predicate<ChangeData> since(String value) throws QueryParseException
QueryParseException
public Predicate<ChangeData> change(String query) throws QueryParseException
QueryParseException
public Predicate<ChangeData> comment(String value)
public Predicate<ChangeData> status(String statusName) throws QueryParseException
QueryParseException
public Predicate<ChangeData> status_open()
public Predicate<ChangeData> has(String value) throws QueryParseException
QueryParseException
public Predicate<ChangeData> is(String value) throws QueryParseException
QueryParseException
public Predicate<ChangeData> commit(String id)
public Predicate<ChangeData> conflicts(String value) throws com.google.gwtorm.server.OrmException, QueryParseException
com.google.gwtorm.server.OrmException
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> intopic(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 QueryParseException, com.google.gwtorm.server.OrmException
QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> message(String text)
public Predicate<ChangeData> star(String label) throws QueryParseException
QueryParseException
public Predicate<ChangeData> starredby(String who) throws QueryParseException, com.google.gwtorm.server.OrmException
QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> watchedby(String who) throws QueryParseException, com.google.gwtorm.server.OrmException
QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> draftby(String who) throws QueryParseException, com.google.gwtorm.server.OrmException
QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> visibleto(String who) throws QueryParseException, com.google.gwtorm.server.OrmException
QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> visibleto(CurrentUser user)
public Predicate<ChangeData> is_visible() throws QueryParseException
QueryParseException
public Predicate<ChangeData> o(String who) throws QueryParseException, com.google.gwtorm.server.OrmException
QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> owner(String who) throws QueryParseException, com.google.gwtorm.server.OrmException
QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> assignee(String who) throws QueryParseException, com.google.gwtorm.server.OrmException
QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> ownerin(String group) throws QueryParseException, com.google.gwtorm.server.OrmException
QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> r(String who) throws QueryParseException, com.google.gwtorm.server.OrmException
QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> reviewer(String who) throws QueryParseException, com.google.gwtorm.server.OrmException
QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> cc(String who) throws QueryParseException, com.google.gwtorm.server.OrmException
QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> reviewerin(String group) throws QueryParseException
QueryParseException
public Predicate<ChangeData> tr(String trackingId)
public Predicate<ChangeData> bug(String trackingId)
public Predicate<ChangeData> limit(String query) throws QueryParseException
QueryParseException
public Predicate<ChangeData> added(String value) throws QueryParseException
QueryParseException
public Predicate<ChangeData> deleted(String value) throws QueryParseException
QueryParseException
public Predicate<ChangeData> size(String value) throws QueryParseException
QueryParseException
public Predicate<ChangeData> delta(String value) throws QueryParseException
QueryParseException
public Predicate<ChangeData> commentby(String who) throws QueryParseException, com.google.gwtorm.server.OrmException
QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> from(String who) throws QueryParseException, com.google.gwtorm.server.OrmException
QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> query(String name) throws QueryParseException
QueryParseException
public Predicate<ChangeData> reviewedby(String who) throws QueryParseException, com.google.gwtorm.server.OrmException
QueryParseException
com.google.gwtorm.server.OrmException
public Predicate<ChangeData> destination(String name) throws QueryParseException
QueryParseException
public Predicate<ChangeData> author(String who)
public Predicate<ChangeData> committer(String who)
public Predicate<ChangeData> submittable(String str) throws QueryParseException
QueryParseException
public Predicate<ChangeData> unresolved(String value) throws QueryParseException
QueryParseException
protected Predicate<ChangeData> defaultField(String query) throws 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.