use of com.hack23.cia.model.internal.application.data.committee.impl.RiksdagenCommitteeDecisionTypeSummaryEmbeddedId in project cia by Hack23.
the class DecisionChartDataManagerImpl method getCommitteeDecisionTypeMap.
/**
* Gets the committee decision type map.
*
* @return the committee decision type map
*/
private Map<String, List<ViewRiksdagenCommitteeDecisionTypeDailySummary>> getCommitteeDecisionTypeMap() {
final DataContainer<ViewRiksdagenCommitteeDecisionTypeDailySummary, RiksdagenCommitteeDecisionTypeSummaryEmbeddedId> committeeBallotDecisionPartyDataContainer = getApplicationManager().getDataContainer(ViewRiksdagenCommitteeDecisionTypeDailySummary.class);
final Date now = new Date();
final Date notBefore = new GregorianCalendar(2000, Calendar.JANUARY, 1).getTime();
return committeeBallotDecisionPartyDataContainer.getAll().parallelStream().filter(t -> t != null && !t.getEmbeddedId().getDecisionDate().after(now) && !notBefore.after(t.getEmbeddedId().getDecisionDate())).collect(Collectors.groupingBy(t -> t.getEmbeddedId().getDecisionType()));
}
Aggregations