use of org.hippoecm.hst.content.beans.query.HstQuery in project hippo by NHS-digital-website.
the class FolderComponent method findAllDocuments.
private HippoBeanIterator findAllDocuments(HippoBean scope) throws QueryException {
HstQueryBuilder queryBuilder = HstQueryBuilder.create(scope);
HstQuery hstQuery = queryBuilder.ofTypes(Publication.class, Series.class, Dataset.class, LegacyPublication.class).limit(20).offset(0).build();
return hstQuery.execute().getHippoBeans();
}
Aggregations