-
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.
simulation ui, continuous code cleanup
- Loading branch information
Showing
15 changed files
with
159 additions
and
21 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
File renamed without changes.
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
...volveum/midpoint/gui/impl/page/admin/simulation/visualization/ContainerVisualization.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) 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.page.admin.simulation.visualization; | ||
|
||
import com.evolveum.midpoint.prism.delta.ChangeType; | ||
import com.evolveum.midpoint.util.LocalizableMessage; | ||
|
||
/** | ||
* Created by Viliam Repan (lazyman). | ||
*/ | ||
public class ContainerVisualization implements Visualization { | ||
|
||
private LocalizableMessage simpleMessage; | ||
|
||
private LocalizableMessage name; | ||
|
||
private LocalizableMessage description; | ||
|
||
private ChangeType changeType; | ||
|
||
public LocalizableMessage getSimpleMessage() { | ||
return simpleMessage; | ||
} | ||
|
||
public void setSimpleMessage(LocalizableMessage simpleMessage) { | ||
this.simpleMessage = simpleMessage; | ||
} | ||
|
||
public LocalizableMessage getName() { | ||
return name; | ||
} | ||
|
||
public void setName(LocalizableMessage name) { | ||
this.name = name; | ||
} | ||
|
||
public LocalizableMessage getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(LocalizableMessage description) { | ||
this.description = description; | ||
} | ||
|
||
public ChangeType getChangeType() { | ||
return changeType; | ||
} | ||
|
||
public void setChangeType(ChangeType changeType) { | ||
this.changeType = changeType; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...um/midpoint/gui/impl/page/admin/simulation/visualization/ContainerVisualizationPanel.html
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,13 @@ | ||
<!-- | ||
~ 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. | ||
--> | ||
|
||
<!DOCTYPE html> | ||
<html xmlns:wicket="http://wicket.apache.org"> | ||
<wicket:panel> | ||
|
||
</wicket:panel> | ||
</html> |
20 changes: 20 additions & 0 deletions
20
...um/midpoint/gui/impl/page/admin/simulation/visualization/ContainerVisualizationPanel.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,20 @@ | ||
/* | ||
* 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.page.admin.simulation.visualization; | ||
|
||
import org.apache.wicket.model.IModel; | ||
|
||
/** | ||
* Created by Viliam Repan (lazyman). | ||
*/ | ||
public class ContainerVisualizationPanel extends CardOutlineLeftPanel<ContainerVisualization> { | ||
|
||
public ContainerVisualizationPanel(String id, IModel<ContainerVisualization> model) { | ||
super(id, model); | ||
} | ||
} |
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
File renamed without changes.
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
25 changes: 25 additions & 0 deletions
25
.../evolveum/midpoint/gui/impl/page/admin/simulation/visualization/VisualizationFactory.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,25 @@ | ||
package com.evolveum.midpoint.gui.impl.page.admin.simulation.visualization; | ||
|
||
import com.evolveum.midpoint.prism.delta.ChangeType; | ||
import com.evolveum.midpoint.prism.delta.ObjectDelta; | ||
import com.evolveum.midpoint.schema.DeltaConvertor; | ||
import com.evolveum.midpoint.util.exception.SchemaException; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType; | ||
import com.evolveum.prism.xml.ns._public.types_3.ObjectDeltaType; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class VisualizationFactory { | ||
|
||
public static <O extends ObjectType> ObjectVisualization createObjectVisualization(@NotNull ObjectDelta<O> delta) { | ||
ObjectVisualization visualization = new ObjectVisualization(); | ||
visualization.setChangeType(ChangeType.DELETE); | ||
|
||
return visualization; | ||
} | ||
|
||
public static <O extends ObjectType> ObjectVisualization createObjectVisualization(@NotNull ObjectDeltaType delta) throws SchemaException { | ||
ObjectDelta<O> objectDelta = DeltaConvertor.createObjectDelta(delta); | ||
return createObjectVisualization(objectDelta); | ||
} | ||
} |
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