Search in sources :

Example 6 with ConfigurationStorage

use of com.evolveum.midpoint.web.session.ConfigurationStorage in project midpoint by Evolveum.

the class PageDebugList method listObjectsPerformed.

private void listObjectsPerformed(AjaxRequestTarget target) {
    Table table = getListTable();
    if (searchModel.getObject().isTypeChanged()) {
        Search search = SearchFactory.createSearch(getTypeItem(), PageDebugList.this, true);
        // TODO: this is veeery ugly, available definitions should refresh when the type changed
        searchModel.setObject(search);
        configureSearch(search);
        table.getDataTable().getColumns().clear();
        // noinspection unchecked
        table.getDataTable().getColumns().addAll(createColumns());
    }
    // save object type category to session storage, used by back button
    ConfigurationStorage storage = getSessionStorage().getConfiguration();
    storage.setSearch(searchModel.getObject());
    target.add((Component) table);
    target.add(getFeedbackPanel());
}
Also used : Table(com.evolveum.midpoint.web.component.data.Table) DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) ConfigurationStorage(com.evolveum.midpoint.web.session.ConfigurationStorage)

Aggregations

ConfigurationStorage (com.evolveum.midpoint.web.session.ConfigurationStorage)6 DataTable (org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable)4 BoxedTablePanel (com.evolveum.midpoint.web.component.data.BoxedTablePanel)2 ObjectDataProvider (com.evolveum.midpoint.web.component.data.ObjectDataProvider)2 Table (com.evolveum.midpoint.web.component.data.Table)2 TablePanel (com.evolveum.midpoint.web.component.data.TablePanel)2 Form (org.apache.wicket.markup.html.form.Form)2 ObjectQuery (com.evolveum.midpoint.prism.query.ObjectQuery)1 ObjectTypes (com.evolveum.midpoint.schema.constants.ObjectTypes)1 RepositoryObjectDataProvider (com.evolveum.midpoint.web.component.data.RepositoryObjectDataProvider)1 MidpointForm (com.evolveum.midpoint.web.component.form.MidpointForm)1 DebugSearchFragment (com.evolveum.midpoint.web.page.admin.configuration.component.DebugSearchFragment)1 AccountDetailsSearchDto (com.evolveum.midpoint.web.page.admin.configuration.dto.AccountDetailsSearchDto)1 DebugObjectItem (com.evolveum.midpoint.web.page.admin.configuration.dto.DebugObjectItem)1 DebugSearchDto (com.evolveum.midpoint.web.page.admin.configuration.dto.DebugSearchDto)1 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)1