-
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.
Merge remote-tracking branch 'origin/feature/role-mining'
- Loading branch information
Showing
212 changed files
with
15,860 additions
and
253 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
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
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
14 changes: 14 additions & 0 deletions
14
gui/admin-gui/src/frontend/scss/role-mining-no-border.scss
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,14 @@ | ||
/*! | ||
* 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. | ||
*/ | ||
|
||
|
||
.role-mining-no-border { | ||
border-left: none !important; | ||
border-right: none !important; | ||
} | ||
|
||
|
20 changes: 20 additions & 0 deletions
20
gui/admin-gui/src/frontend/scss/role-mining-rotated-header.scss
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,20 @@ | ||
/*! | ||
* Copyright (C) 2010-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. | ||
*/ | ||
|
||
|
||
.role-mining-rotated-header { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
transform: rotate(180deg); | ||
writing-mode: vertical-lr; | ||
width: 40px; | ||
height: 150px; | ||
border: 1px solid #f4f4f4; | ||
} | ||
|
||
|
20 changes: 20 additions & 0 deletions
20
gui/admin-gui/src/frontend/scss/role-mining-static-header-name.scss
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,20 @@ | ||
/*! | ||
* Copyright (C) 2010-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. | ||
*/ | ||
|
||
|
||
.role-mining-static-header-name { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
transform: rotate(180deg); | ||
writing-mode: revert; | ||
width: 40px; | ||
height: 120px; | ||
border: 1px solid #f4f4f4; | ||
} | ||
|
||
|
14 changes: 14 additions & 0 deletions
14
gui/admin-gui/src/frontend/scss/role-mining-static-header.scss
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,14 @@ | ||
/*! | ||
* Copyright (C) 2010-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. | ||
*/ | ||
|
||
|
||
.role-mining-static-header { | ||
width: 40px; | ||
height: 150px; | ||
} | ||
|
||
|
16 changes: 16 additions & 0 deletions
16
gui/admin-gui/src/frontend/scss/role-mining-static-row-header.scss
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,16 @@ | ||
/*! | ||
* Copyright (C) 2010-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. | ||
*/ | ||
|
||
|
||
.role-mining-static-row-header { | ||
width: 150px; | ||
height: 120px; | ||
border-left: none !important; | ||
border-right: none !important; | ||
} | ||
|
||
|
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
68 changes: 68 additions & 0 deletions
68
...min-gui/src/main/java/com/evolveum/midpoint/gui/impl/factory/panel/RangePanelFactory.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,68 @@ | ||
/* | ||
* 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 jakarta.annotation.PostConstruct; | ||
import org.apache.wicket.model.PropertyModel; | ||
import org.springframework.stereotype.Component; | ||
|
||
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.RangeSimplePanel; | ||
import com.evolveum.midpoint.prism.path.ItemName; | ||
import com.evolveum.midpoint.web.component.prism.InputPanel; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.AbstractAnalysisSessionOptionType; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.AnalysisClusterStatisticType; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.RangeType; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.RoleAnalysisDetectionOptionType; | ||
|
||
@Component | ||
public class RangePanelFactory extends AbstractInputGuiComponentFactory<RangeType> { | ||
|
||
@PostConstruct | ||
public void register() { | ||
getRegistry().addToRegistry(this); | ||
} | ||
|
||
@Override | ||
public <IW extends ItemWrapper<?, ?>, VW extends PrismValueWrapper<?>> boolean match(IW wrapper, VW valueWrapper) { | ||
return RoleAnalysisDetectionOptionType.F_FREQUENCY_RANGE.equals(wrapper.getItemName()) | ||
|| AbstractAnalysisSessionOptionType.F_PROPERTIES_RANGE.equals(wrapper.getItemName()) | ||
|| AnalysisClusterStatisticType.F_MEMBERSHIP_RANGE.equals(wrapper.getItemName()); | ||
} | ||
|
||
@Override | ||
protected InputPanel getPanel(PrismPropertyPanelContext<RangeType> panelCtx) { | ||
ItemName itemName = panelCtx.unwrapWrapperModel().getItemName(); | ||
|
||
double max; | ||
if (RoleAnalysisDetectionOptionType.F_FREQUENCY_RANGE.equals(itemName)) { | ||
max = 100.0; | ||
} else { | ||
max = 1000.0; | ||
} | ||
|
||
RangeSimplePanel rangeSliderPanel = new RangeSimplePanel(panelCtx.getComponentId(), | ||
new PropertyModel<>(panelCtx.getItemWrapperModel(), "value"), max); | ||
rangeSliderPanel.setOutputMarkupId(true); | ||
return rangeSliderPanel; | ||
} | ||
|
||
@Override | ||
public Integer getOrder() { | ||
return 10000; | ||
} | ||
|
||
@Override | ||
public void configure(PrismPropertyPanelContext<RangeType> panelCtx, org.apache.wicket.Component component) { | ||
component.setEnabled(isEnable()); | ||
} | ||
|
||
public boolean isEnable() { | ||
return true; | ||
} | ||
} |
Oops, something went wrong.