Search in sources :

Example 1 with CertCampaignsStorage

use of com.evolveum.midpoint.web.session.CertCampaignsStorage 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 CertCampaignsStorage

use of com.evolveum.midpoint.web.session.CertCampaignsStorage 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)2 CertCampaignsStorage (com.evolveum.midpoint.web.session.CertCampaignsStorage)2 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