use of com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignListItemDtoProvider in project midpoint by Evolveum.
the class PageCertCampaigns method searchFilterPerformed.
private void searchFilterPerformed(AjaxRequestTarget target) {
CertCampaignsSearchDto dto = searchModel.getObject();
Table panel = getCampaignsTable();
DataTable table = panel.getDataTable();
CertCampaignListItemDtoProvider provider = (CertCampaignListItemDtoProvider) table.getDataProvider();
provider.setQuery(createCampaignsQuery());
table.setCurrentPage(0);
CertCampaignsStorage storage = getSessionStorage().getCertCampaigns();
storage.setCampaignsSearch(dto);
target.add(getFeedbackPanel());
target.add((Component) getCampaignsTable());
}
use of com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignListItemDtoProvider in project midpoint by Evolveum.
the class PageCertCampaigns method initLayout.
private void initLayout() {
Form mainForm = new MidpointForm(ID_MAIN_FORM);
add(mainForm);
CertCampaignListItemDtoProvider provider = createProvider();
provider.setQuery(createCampaignsQuery());
BoxedTablePanel<CertCampaignListItemDto> table = new BoxedTablePanel<CertCampaignListItemDto>(ID_CAMPAIGNS_TABLE, provider, initColumns(), UserProfileStorage.TableId.PAGE_CERT_CAMPAIGNS_PANEL) {
@Override
protected WebMarkupContainer createHeader(String headerId) {
return new SearchFragment(headerId, ID_TABLE_HEADER, PageCertCampaigns.this, searchModel);
}
};
table.setShowPaging(true);
table.setOutputMarkupId(true);
mainForm.add(table);
}
use of com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignListItemDtoProvider in project midpoint by Evolveum.
the class PageCertCampaigns method createProvider.
// region Data management
private CertCampaignListItemDtoProvider createProvider() {
CertCampaignListItemDtoProvider provider = new CertCampaignListItemDtoProvider(this) {
@Override
public CertCampaignListItemDto createDataObjectWrapper(PrismObject<AccessCertificationCampaignType> obj) {
CertCampaignListItemDto dto = super.createDataObjectWrapper(obj);
// createInlineMenuForItem(dto);
return dto;
}
};
provider.setOptions(null);
return provider;
}
Aggregations