Search in sources :

Example 1 with CertCampaignListItemDtoProvider

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());
}
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 CertCampaignListItemDtoProvider

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);
}
Also used : CertCampaignListItemDtoProvider(com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignListItemDtoProvider) MidpointForm(com.evolveum.midpoint.web.component.form.MidpointForm) Form(org.apache.wicket.markup.html.form.Form) MidpointForm(com.evolveum.midpoint.web.component.form.MidpointForm) CertCampaignListItemDto(com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignListItemDto) BoxedTablePanel(com.evolveum.midpoint.web.component.data.BoxedTablePanel)

Example 3 with CertCampaignListItemDtoProvider

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;
}
Also used : PrismObject(com.evolveum.midpoint.prism.PrismObject) CertCampaignListItemDtoProvider(com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignListItemDtoProvider) CertCampaignListItemDto(com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignListItemDto)

Aggregations

CertCampaignListItemDtoProvider (com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignListItemDtoProvider)3 CertCampaignListItemDto (com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignListItemDto)2 PrismObject (com.evolveum.midpoint.prism.PrismObject)1 BoxedTablePanel (com.evolveum.midpoint.web.component.data.BoxedTablePanel)1 Table (com.evolveum.midpoint.web.component.data.Table)1 MidpointForm (com.evolveum.midpoint.web.component.form.MidpointForm)1 CertCampaignsSearchDto (com.evolveum.midpoint.web.page.admin.certification.dto.CertCampaignsSearchDto)1 CertCampaignsStorage (com.evolveum.midpoint.web.session.CertCampaignsStorage)1 DataTable (org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable)1 Form (org.apache.wicket.markup.html.form.Form)1