-
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.
- Loading branch information
1 parent
0cb3b1e
commit cccc3de
Showing
78 changed files
with
2,378 additions
and
3,462 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5769,4 +5769,5 @@ protected PrismContainerDefinition<C> load() { | |
} | ||
}; | ||
} | ||
|
||
} |
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
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
71 changes: 71 additions & 0 deletions
71
...in/java/com/evolveum/midpoint/gui/impl/factory/panel/ValueSelectorSliderPanelFactory.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,71 @@ | ||
/* | ||
* Copyright (C) 2010-2023 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.factory.panel; | ||
|
||
import com.evolveum.midpoint.gui.api.prism.wrapper.ItemWrapper; | ||
import com.evolveum.midpoint.gui.api.prism.wrapper.PrismValueWrapper; | ||
import com.evolveum.midpoint.gui.impl.page.admin.role.mining.components.RangeSliderPanel; | ||
import com.evolveum.midpoint.web.component.prism.InputPanel; | ||
import com.evolveum.midpoint.web.page.admin.configuration.component.EmptyOnChangeAjaxFormUpdatingBehavior; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.*; | ||
|
||
import jakarta.annotation.PostConstruct; | ||
import org.springframework.stereotype.Component; | ||
|
||
import javax.xml.namespace.QName; | ||
import java.util.List; | ||
|
||
@Component | ||
public class ValueSelectorSliderPanelFactory extends AbstractInputGuiComponentFactory<Double> { | ||
|
||
@PostConstruct | ||
public void register() { | ||
getRegistry().addToRegistry(this); | ||
} | ||
|
||
@Override | ||
public <IW extends ItemWrapper<?, ?>, VW extends PrismValueWrapper<?>> boolean match(IW wrapper, VW valueWrapper) { | ||
return RoleAnalysisSessionOptionType.F_SIMILARITY_THRESHOLD.equals(wrapper.getItemName()); | ||
} | ||
|
||
@Override | ||
protected InputPanel getPanel(PrismPropertyPanelContext<Double> panelCtx) { | ||
List<QName> typesList; | ||
// if (AssignmentType.F_FOCUS_TYPE.equals(panelCtx.getDefinitionName()) | ||
// || ItemPath.create( | ||
// ResourceType.F_SCHEMA_HANDLING, | ||
// SchemaHandlingType.F_OBJECT_TYPE, | ||
// ResourceObjectTypeDefinitionType.F_FOCUS, | ||
// ResourceObjectFocusSpecificationType.F_TYPE) | ||
// .equivalent(panelCtx.unwrapWrapperModel().getPath().namedSegmentsOnly())) { | ||
// typesList = ObjectTypeListUtil.createFocusTypeList(); | ||
// } else if ((ObjectCollectionType.F_TYPE.equals(panelCtx.getDefinitionName()) || GuiObjectListViewType.F_TYPE.equals(panelCtx.getDefinitionName())) | ||
// && panelCtx.unwrapWrapperModel().getParent().getDefinition() != null && | ||
// (ObjectCollectionType.class.equals(panelCtx.unwrapWrapperModel().getParent().getDefinition().getTypeClass()) | ||
// || GuiObjectListViewType.class.equals(panelCtx.unwrapWrapperModel().getParent().getDefinition().getTypeClass()))) { | ||
// typesList = ObjectTypeListUtil.createContainerableTypesQnameList(); | ||
// } else { | ||
// typesList = ObjectTypeListUtil.createObjectTypeList(); | ||
// } | ||
|
||
|
||
|
||
RangeSliderPanel rangeSliderPanel = new RangeSliderPanel(panelCtx.getComponentId(),panelCtx.getRealValueModel()); | ||
// DropDownChoicePanel<QName> typePanel = new DropDownChoicePanel<QName>(panelCtx.getComponentId(), panelCtx.getRealValueModel(), | ||
// Model.ofList(typesList), new QNameObjectTypeChoiceRenderer(), true); | ||
rangeSliderPanel.getBaseFormComponent().add(new EmptyOnChangeAjaxFormUpdatingBehavior()); | ||
rangeSliderPanel.setOutputMarkupId(true); | ||
return rangeSliderPanel; | ||
} | ||
|
||
@Override | ||
public Integer getOrder() { | ||
return 10000; | ||
} | ||
|
||
|
||
} |
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.