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
Showing
18 changed files
with
875 additions
and
138 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
301 changes: 186 additions & 115 deletions
301
gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/page/PageBase.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
19 changes: 19 additions & 0 deletions
19
gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/ObjectBasicPanel.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,19 @@ | ||
<!-- | ||
~ Copyright (c) 2010-2013 Evolveum | ||
~ | ||
~ 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> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="top-level-prism-container"> | ||
<div wicket:id="basicObjectContainer" /> | ||
</div> | ||
</div> | ||
</div> | ||
</wicket:panel> | ||
</html> |
70 changes: 70 additions & 0 deletions
70
gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/ObjectBasicPanel.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,70 @@ | ||
/* | ||
* Copyright (c) 2018 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.component; | ||
|
||
import com.evolveum.midpoint.gui.api.component.BasePanel; | ||
import com.evolveum.midpoint.gui.api.prism.wrapper.ItemWrapper; | ||
import com.evolveum.midpoint.gui.api.prism.wrapper.PrismObjectWrapper; | ||
import com.evolveum.midpoint.gui.impl.prism.panel.ItemPanelSettingsBuilder; | ||
import com.evolveum.midpoint.util.exception.SchemaException; | ||
import com.evolveum.midpoint.util.logging.Trace; | ||
import com.evolveum.midpoint.util.logging.TraceManager; | ||
import com.evolveum.midpoint.web.component.prism.ItemVisibility; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType; | ||
|
||
import org.apache.wicket.markup.html.panel.Panel; | ||
import org.apache.wicket.model.IModel; | ||
|
||
import javax.xml.namespace.QName; | ||
|
||
/** | ||
* @author skublik | ||
*/ | ||
public class ObjectBasicPanel<O extends ObjectType> extends BasePanel<PrismObjectWrapper<O>> { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
private static final Trace LOGGER = TraceManager.getTrace(ObjectBasicPanel.class); | ||
|
||
private static final String ID_BASIC_CONTAINER = "basicObjectContainer"; | ||
|
||
|
||
public ObjectBasicPanel(String id, IModel<PrismObjectWrapper<O>> model) { | ||
super(id, model); | ||
|
||
setOutputMarkupId(true); | ||
|
||
} | ||
|
||
@Override | ||
protected void onInitialize() { | ||
super.onInitialize(); | ||
|
||
initLayout(); | ||
} | ||
|
||
protected void initLayout() { | ||
try { | ||
ItemPanelSettingsBuilder builder = new ItemPanelSettingsBuilder().visibilityHandler(this::getBasicTabVisibility); | ||
Panel panel = getPageBase().initItemPanel(ID_BASIC_CONTAINER, getType(), getModel(), builder.build()); | ||
add(panel); | ||
} catch (SchemaException e) { | ||
LOGGER.error("Cannot create basic panel for system configuration."); | ||
getSession().error("Cannot create basic panel for system configuration."); | ||
} | ||
|
||
} | ||
|
||
protected QName getType() { | ||
return ObjectType.COMPLEX_TYPE; | ||
} | ||
|
||
protected ItemVisibility getBasicTabVisibility(ItemWrapper<?, ?> itemWrapper) { | ||
return ItemVisibility.AUTO; | ||
} | ||
} |
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
40 changes: 40 additions & 0 deletions
40
...a/com/evolveum/midpoint/web/page/admin/objectCollection/ObjectCollectionSummaryPanel.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,40 @@ | ||
/* | ||
* Copyright (c) 2010-2019 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.objectCollection; | ||
|
||
import com.evolveum.midpoint.gui.api.GuiStyleConstants; | ||
import com.evolveum.midpoint.gui.api.util.ModelServiceLocator; | ||
import com.evolveum.midpoint.web.component.ObjectSummaryPanel; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectCollectionType; | ||
|
||
import org.apache.wicket.model.IModel; | ||
|
||
/** | ||
* @author skublik | ||
*/ | ||
|
||
public class ObjectCollectionSummaryPanel extends ObjectSummaryPanel<ObjectCollectionType> { | ||
|
||
public ObjectCollectionSummaryPanel(String id, IModel<ObjectCollectionType> model, ModelServiceLocator serviceLocator) { | ||
super(id, ObjectCollectionType.class, model, serviceLocator); | ||
} | ||
|
||
@Override | ||
protected String getIconCssClass() { | ||
return GuiStyleConstants.CLASS_OBJECT_COLLECTION_CAMPAIGN_ICON; | ||
} | ||
|
||
@Override | ||
protected String getIconBoxAdditionalCssClass() { | ||
return "summary-panel-shadow"; | ||
} | ||
|
||
@Override | ||
protected String getBoxAdditionalCssClass() { | ||
return "summary-panel-shadow"; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...main/java/com/evolveum/midpoint/web/page/admin/objectCollection/PageObjectCollection.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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2010-2013 Evolveum | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org"> | ||
<body> | ||
<wicket:extend> | ||
<wicket:child /> | ||
</wicket:extend> | ||
</body> | ||
</html> |
Oops, something went wrong.