Search in sources :

Example 1 with SocialAdapter

use of org.ext.uberfire.social.activities.service.SocialAdapter in project kie-wb-common by kiegroup.

the class SocialTimelineRulesQuery method getAllCached.

@Override
public List<SocialActivitiesEvent> getAllCached() {
    List<SocialActivitiesEvent> events = new ArrayList<>();
    Map<Class, SocialAdapter> socialAdapters = socialAdapterRepositoryAPI.getSocialAdapters();
    for (SocialAdapter adapter : socialAdapters.values()) {
        events.addAll(socialTimeLineRepositoryAPI.getLastEventTimeline(adapter, new HashMap()));
    }
    return events;
}
Also used : HashMap(java.util.HashMap) SocialAdapter(org.ext.uberfire.social.activities.service.SocialAdapter) SocialActivitiesEvent(org.ext.uberfire.social.activities.model.SocialActivitiesEvent) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 SocialActivitiesEvent (org.ext.uberfire.social.activities.model.SocialActivitiesEvent)1 SocialAdapter (org.ext.uberfire.social.activities.service.SocialAdapter)1