use of com.google.gerrit.extensions.client.ListGroupsOption in project gerrit by GerritCodeReview.
the class GroupsImpl method query.
private List<GroupInfo> query(QueryRequest r) throws RestApiException {
try {
QueryGroups myQueryGroups = queryGroups.get();
myQueryGroups.setQuery(r.getQuery());
myQueryGroups.setLimit(r.getLimit());
myQueryGroups.setStart(r.getStart());
for (ListGroupsOption option : r.getOptions()) {
myQueryGroups.addOption(option);
}
return myQueryGroups.apply(TopLevelResource.INSTANCE);
} catch (Exception e) {
throw asRestApiException("Cannot query groups", e);
}
}
Aggregations