use of com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignsSearchDto 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.CertCampaignsSearchDto in project midpoint by Evolveum.
the class PageCertCampaigns method createCampaignsQuery.
private ObjectQuery createCampaignsQuery() {
S_AtomicFilterEntry q = getPrismContext().queryFor(AccessCertificationCampaignType.class);
if (definitionOid != null) {
q = q.item(AccessCertificationCampaignType.F_DEFINITION_REF).ref(definitionOid).and();
}
CertCampaignsSearchDto dto = searchModel.getObject();
q = dto.getStateFilter().appendFilter(q);
return q.all().build();
}
use of com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignsSearchDto in project midpoint by Evolveum.
the class PageCertCampaigns method loadSearchDto.
private CertCampaignsSearchDto loadSearchDto() {
CertCampaignsStorage storage = getSessionStorage().getCertCampaigns();
CertCampaignsSearchDto dto = storage.getCampaignsSearch();
return dto != null ? dto : new CertCampaignsSearchDto();
}
Aggregations