-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding wizard for synchronization and credentials of resource object …
…type
- Loading branch information
Showing
14 changed files
with
531 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
...nt/gui/impl/page/admin/resource/component/wizard/objectType/AbstractInboundStepPanel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* Copyright (C) 2022 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.gui.impl.page.admin.resource.component.wizard.objectType; | ||
|
||
import com.evolveum.midpoint.prism.Containerable; | ||
|
||
import com.evolveum.midpoint.prism.path.ItemPath; | ||
|
||
import org.apache.wicket.model.IModel; | ||
|
||
import com.evolveum.midpoint.gui.api.prism.wrapper.PrismContainerValueWrapper; | ||
import com.evolveum.midpoint.gui.api.prism.wrapper.PrismContainerWrapper; | ||
import com.evolveum.midpoint.gui.impl.page.admin.resource.ResourceDetailsModel; | ||
import com.evolveum.midpoint.gui.impl.page.admin.resource.component.wizard.basic.AbstractFormResourceWizardStepPanel; | ||
import com.evolveum.midpoint.web.model.PrismContainerWrapperModel; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceAttributeDefinitionType; | ||
|
||
/** | ||
* @author lskublik | ||
*/ | ||
public abstract class AbstractInboundStepPanel<C extends Containerable> extends AbstractFormResourceWizardStepPanel { | ||
|
||
|
||
private final IModel<PrismContainerValueWrapper<C>> newValueModel; | ||
|
||
public AbstractInboundStepPanel(ResourceDetailsModel model, | ||
IModel<PrismContainerValueWrapper<C>> newValueModel) { | ||
super(model); | ||
this.newValueModel = newValueModel; | ||
} | ||
|
||
@Override | ||
protected IModel<? extends PrismContainerWrapper> getContainerFormModel() { | ||
PrismContainerWrapperModel<C, Containerable> model | ||
= PrismContainerWrapperModel.fromContainerValueWrapper(newValueModel, getContainerPath()); | ||
model.getObject().setExpanded(true); | ||
return model; | ||
} | ||
|
||
protected ItemPath getContainerPath() { | ||
return ResourceAttributeDefinitionType.F_INBOUND; | ||
} | ||
|
||
@Override | ||
protected boolean isExitButtonVisible() { | ||
return true; | ||
} | ||
|
||
@Override | ||
protected String getIcon() { | ||
return "fa fa-circle"; | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
...t/gui/impl/page/admin/resource/component/wizard/objectType/AbstractOutboundStepPanel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* Copyright (C) 2022 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.gui.impl.page.admin.resource.component.wizard.objectType; | ||
|
||
import com.evolveum.midpoint.prism.path.ItemPath; | ||
|
||
import org.apache.wicket.model.IModel; | ||
|
||
import com.evolveum.midpoint.gui.api.prism.wrapper.PrismContainerValueWrapper; | ||
import com.evolveum.midpoint.gui.api.prism.wrapper.PrismContainerWrapper; | ||
import com.evolveum.midpoint.gui.impl.page.admin.resource.ResourceDetailsModel; | ||
import com.evolveum.midpoint.gui.impl.page.admin.resource.component.wizard.basic.AbstractFormResourceWizardStepPanel; | ||
import com.evolveum.midpoint.prism.Containerable; | ||
import com.evolveum.midpoint.web.application.PanelDisplay; | ||
import com.evolveum.midpoint.web.application.PanelInstance; | ||
import com.evolveum.midpoint.web.application.PanelType; | ||
import com.evolveum.midpoint.web.model.PrismContainerWrapperModel; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.OperationTypeType; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceAttributeDefinitionType; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType; | ||
|
||
/** | ||
* @author lskublik | ||
*/ | ||
public abstract class AbstractOutboundStepPanel<C extends Containerable> extends AbstractFormResourceWizardStepPanel { | ||
|
||
private static final String PANEL_TYPE = "OutboundAttributeMappingWizard"; | ||
|
||
private final IModel<PrismContainerValueWrapper<C>> newValueModel; | ||
|
||
public AbstractOutboundStepPanel(ResourceDetailsModel model, | ||
IModel<PrismContainerValueWrapper<C>> newValueModel) { | ||
super(model); | ||
this.newValueModel = newValueModel; | ||
} | ||
|
||
@Override | ||
protected IModel<? extends PrismContainerWrapper> getContainerFormModel() { | ||
PrismContainerWrapperModel<C, Containerable> model | ||
= PrismContainerWrapperModel.fromContainerValueWrapper(newValueModel, getContainerPath()); | ||
model.getObject().setExpanded(true); | ||
return model; | ||
} | ||
|
||
protected ItemPath getContainerPath() { | ||
return ResourceAttributeDefinitionType.F_OUTBOUND; | ||
} | ||
|
||
@Override | ||
protected boolean isExitButtonVisible() { | ||
return true; | ||
} | ||
|
||
@Override | ||
protected String getIcon() { | ||
return "fa fa-circle"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.