Search in sources :

Example 1 with ConditionalSearchFilterEditor

use of com.evolveum.midpoint.web.component.wizard.resource.component.synchronization.ConditionalSearchFilterEditor in project midpoint by Evolveum.

the class SynchronizationStep method correlationEditPerformed.

private void correlationEditPerformed(AjaxRequestTarget target, @NotNull ConditionalSearchFilterType condition) {
    if (condition.getCondition() == null) {
        // removed at save
        condition.setCondition(new ExpressionType());
    }
    resetSelections(target);
    syncDtoModel.getObject().setSelectedCorrelation(condition);
    WebMarkupContainer newContainer = new ConditionalSearchFilterEditor(ID_THIRD_ROW_CONTAINER, new NonEmptyWrapperModel<>(new Model<>(condition)), parentPage);
    getThirdRowContainer().replaceWith(newContainer);
    target.add(getThirdRowContainer(), get(ID_OBJECT_SYNC_EDITOR), getPageBase().getFeedbackPanel());
}
Also used : ConditionalSearchFilterEditor(com.evolveum.midpoint.web.component.wizard.resource.component.synchronization.ConditionalSearchFilterEditor) IModel(org.apache.wicket.model.IModel) AbstractReadOnlyModel(org.apache.wicket.model.AbstractReadOnlyModel) Model(org.apache.wicket.model.Model) NonEmptyLoadableModel(com.evolveum.midpoint.gui.api.model.NonEmptyLoadableModel) PropertyModel(org.apache.wicket.model.PropertyModel) NonEmptyWrapperModel(com.evolveum.midpoint.gui.api.model.NonEmptyWrapperModel) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer)

Aggregations

NonEmptyLoadableModel (com.evolveum.midpoint.gui.api.model.NonEmptyLoadableModel)1 NonEmptyWrapperModel (com.evolveum.midpoint.gui.api.model.NonEmptyWrapperModel)1 ConditionalSearchFilterEditor (com.evolveum.midpoint.web.component.wizard.resource.component.synchronization.ConditionalSearchFilterEditor)1 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)1 AbstractReadOnlyModel (org.apache.wicket.model.AbstractReadOnlyModel)1 IModel (org.apache.wicket.model.IModel)1 Model (org.apache.wicket.model.Model)1 PropertyModel (org.apache.wicket.model.PropertyModel)1