use of de.metas.ui.web.material.cockpit.MaterialCockpitView in project metasfresh-webui-api by metasfresh.
the class MD_Cockpit_DocumentDetail_Display method retrieveCockpitRecordIds.
private ImmutableSet<Integer> retrieveCockpitRecordIds() {
final MaterialCockpitView materialCockpitView = (MaterialCockpitView) getView();
final DocumentIdsSelection selectedRowIds = getSelectedRowIds();
final ImmutableSet<Integer> cockpitRowIds = selectedRowIds.stream().map(rowId -> {
return materialCockpitView.getById(rowId);
}).flatMap(row -> {
return row.getAllIncludedCockpitRecordIds().stream();
}).collect(ImmutableSet.toImmutableSet());
return cockpitRowIds;
}
Aggregations