use of org.ext.uberfire.social.activities.model.PagedSocialQuery in project kie-wb-common by kiegroup.
the class SocialTimelineRulesQuery method getNEventsFromEachType.
@Override
public List<SocialActivitiesEvent> getNEventsFromEachType(int numberOfEvents, String... typeNames) {
List<SocialActivitiesEvent> events = new ArrayList<>();
for (String type : typeNames) {
PagedSocialQuery query = socialTypeTimelinePagedRepositoryAPI.getEventTimeline(type, new SocialPaged(numberOfEvents), new HashMap());
events.addAll(query.socialEvents());
}
return events;
}
Aggregations