use of com.evolveum.midpoint.web.page.admin.workflow.dto.WorkItemDtoProvider in project midpoint by Evolveum.
the class WorkItemsPanel method getSelectedWorkItems.
public List<WorkItemDto> getSelectedWorkItems() {
DataTable table = getWorkItemTable().getDataTable();
WorkItemDtoProvider provider = (WorkItemDtoProvider) table.getDataProvider();
List<WorkItemDto> selected = new ArrayList<>();
for (WorkItemDto row : provider.getAvailableData()) {
if (row.isSelected()) {
selected.add(row);
}
}
return selected;
}
use of com.evolveum.midpoint.web.page.admin.workflow.dto.WorkItemDtoProvider in project midpoint by Evolveum.
the class PageWorkItems method initLayout.
private void initLayout() {
Form mainForm = new Form(ID_MAIN_FORM);
add(mainForm);
WorkItemsPanel panel = new WorkItemsPanel(ID_WORK_ITEMS_PANEL, new WorkItemDtoProvider(PageWorkItems.this, claimable, all), UserProfileStorage.TableId.PAGE_WORK_ITEMS, (int) getItemsPerPage(UserProfileStorage.TableId.PAGE_WORK_ITEMS), WorkItemsPanel.View.FULL_LIST);
panel.setOutputMarkupId(true);
mainForm.add(panel);
initItemButtons(mainForm);
}
Aggregations