Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Evolveum/midpoint
# Conflicts: # gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/cases/PageCase.java
- Loading branch information
Showing
44 changed files
with
3,893 additions
and
3,281 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
11 changes: 11 additions & 0 deletions
11
...dmin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/cases/ManualCaseTabPanel.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,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2010-2019 Evolveum | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<wicket:panel xmlns:wicket="http://wicket.apache.org"> | ||
<div wicket:id="manualCaseDetailsPanel" /> | ||
</wicket:panel> |
69 changes: 69 additions & 0 deletions
69
...dmin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/cases/ManualCaseTabPanel.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,69 @@ | ||
/* | ||
* Copyright (c) 2010-2020 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.web.page.admin.cases; | ||
|
||
import com.evolveum.midpoint.gui.api.model.LoadableModel; | ||
import com.evolveum.midpoint.gui.api.page.PageBase; | ||
import com.evolveum.midpoint.gui.api.prism.PrismObjectWrapper; | ||
import com.evolveum.midpoint.gui.api.util.WebComponentUtil; | ||
import com.evolveum.midpoint.util.logging.Trace; | ||
import com.evolveum.midpoint.util.logging.TraceManager; | ||
import com.evolveum.midpoint.web.component.form.Form; | ||
import com.evolveum.midpoint.web.component.objectdetails.AbstractObjectTabPanel; | ||
import com.evolveum.midpoint.web.component.prism.show.SceneDto; | ||
import com.evolveum.midpoint.web.component.prism.show.ScenePanel; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.CaseType; | ||
|
||
import org.apache.wicket.model.IModel; | ||
|
||
/** | ||
* Created by honchar | ||
*/ | ||
public class ManualCaseTabPanel extends AbstractObjectTabPanel<CaseType> { | ||
private static final long serialVersionUID = 1L; | ||
|
||
private static final String DOT_CLASS = OperationRequestCaseTabPanel.class.getName() + "."; | ||
private static final Trace LOGGER = TraceManager.getTrace(OperationRequestCaseTabPanel.class); | ||
private static final String OPERATION_PREPARE_DELTA_VISUALIZATION = DOT_CLASS + "prepareDeltaVisualization"; | ||
|
||
private static final String ID_MANUAL_CASE_DETAILS_PANEL = "manualCaseDetailsPanel"; | ||
private IModel<SceneDto> sceneModel; | ||
|
||
public ManualCaseTabPanel(String id, Form<PrismObjectWrapper<CaseType>> mainForm, LoadableModel<PrismObjectWrapper<CaseType>> objectWrapperModel, PageBase pageBase) { | ||
super(id, mainForm, objectWrapperModel); | ||
} | ||
|
||
@Override | ||
protected void onInitialize(){ | ||
super.onInitialize(); | ||
initModels(); | ||
initLayout(); | ||
} | ||
|
||
private void initModels(){ | ||
sceneModel = new LoadableModel<SceneDto>(false) { | ||
@Override | ||
protected SceneDto load() { | ||
PageBase pageBase = ManualCaseTabPanel.this.getPageBase(); | ||
try { | ||
return WebComponentUtil.createSceneDtoForManualCase(ManualCaseTabPanel.this.getObjectWrapperModel().getObject().getObject().asObjectable(), | ||
pageBase, OPERATION_PREPARE_DELTA_VISUALIZATION); | ||
} catch (Exception ex){ | ||
LOGGER.error("Couldn't prepare delta visualization: {}", ex.getLocalizedMessage()); | ||
} | ||
return null; | ||
} | ||
}; | ||
} | ||
|
||
private void initLayout() { | ||
ScenePanel scenePanel = new ScenePanel(ID_MANUAL_CASE_DETAILS_PANEL, sceneModel); | ||
scenePanel.setOutputMarkupId(true); | ||
add(scenePanel); | ||
} | ||
|
||
} |
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
Oops, something went wrong.