use of com.evolveum.midpoint.web.page.admin.certification.dto.CertCaseDtoProvider in project midpoint by Evolveum.
the class PageCertCampaign method initTableLayout.
private void initTableLayout(Form mainForm) {
CertCaseDtoProvider provider = new CertCaseDtoProvider(PageCertCampaign.this);
provider.setQuery(createCaseQuery());
provider.setCampaignOid(campaignOid);
// default sorting
provider.setSort(AccessCertificationCaseType.F_OBJECT_REF.getLocalPart(), SortOrder.ASCENDING);
int itemsPerPage = (int) getItemsPerPage(UserProfileStorage.TableId.PAGE_CERT_CAMPAIGN_OUTCOMES_PANEL);
BoxedTablePanel table = new BoxedTablePanel<>(ID_OUTCOMES_TABLE, provider, initColumns(), UserProfileStorage.TableId.PAGE_CERT_CAMPAIGN_OUTCOMES_PANEL, itemsPerPage);
table.setShowPaging(true);
table.setOutputMarkupId(true);
table.setItemsPerPage(itemsPerPage);
mainForm.add(table);
}
Aggregations