Search in sources :

Example 1 with CertCampaignsSearchDto

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());
}
Also used : DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) Table(com.evolveum.midpoint.web.component.data.Table) DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) CertCampaignListItemDtoProvider(com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignListItemDtoProvider) CertCampaignsStorage(com.evolveum.midpoint.web.session.CertCampaignsStorage) CertCampaignsSearchDto(com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignsSearchDto)

Example 2 with CertCampaignsSearchDto

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();
}
Also used : S_AtomicFilterEntry(com.evolveum.midpoint.prism.query.builder.S_AtomicFilterEntry) CertCampaignsSearchDto(com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignsSearchDto)

Example 3 with CertCampaignsSearchDto

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();
}
Also used : CertCampaignsStorage(com.evolveum.midpoint.web.session.CertCampaignsStorage) CertCampaignsSearchDto(com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignsSearchDto)

Aggregations

CertCampaignsSearchDto (com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignsSearchDto)3 CertCampaignsStorage (com.evolveum.midpoint.web.session.CertCampaignsStorage)2 S_AtomicFilterEntry (com.evolveum.midpoint.prism.query.builder.S_AtomicFilterEntry)1 Table (com.evolveum.midpoint.web.component.data.Table)1 CertCampaignListItemDtoProvider (com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignListItemDtoProvider)1 DataTable (org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable)1