-
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 branch 'master' into feature/schema-cleanup-4.4
- Loading branch information
Showing
88 changed files
with
2,261 additions
and
906 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
79 changes: 79 additions & 0 deletions
79
...-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/archetype/PageArchetype.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,79 @@ | ||
/* | ||
* Copyright (c) 2021 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.archetype; | ||
|
||
import com.evolveum.midpoint.gui.api.model.LoadableModel; | ||
import com.evolveum.midpoint.gui.impl.page.admin.assignmentholder.AssignmentHolderDetailsModel; | ||
import com.evolveum.midpoint.gui.impl.page.admin.assignmentholder.FocusDetailsModels; | ||
import com.evolveum.midpoint.gui.impl.page.admin.assignmentholder.PageAssignmentHolderDetails; | ||
import com.evolveum.midpoint.gui.impl.page.admin.focus.PageFocusDetails; | ||
import com.evolveum.midpoint.web.page.admin.configuration.PageAdminConfiguration; | ||
|
||
import org.apache.wicket.markup.html.panel.Panel; | ||
import org.apache.wicket.request.mapper.parameter.PageParameters; | ||
import com.evolveum.midpoint.prism.PrismObject; | ||
import com.evolveum.midpoint.security.api.AuthorizationConstants; | ||
import com.evolveum.midpoint.web.application.AuthorizationAction; | ||
import com.evolveum.midpoint.web.application.PageDescriptor; | ||
import com.evolveum.midpoint.web.application.Url; | ||
import com.evolveum.midpoint.web.page.admin.archetype.ArchetypeSummaryPanel; | ||
import com.evolveum.midpoint.web.util.OnePageParameterEncoder; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType; | ||
|
||
@PageDescriptor( | ||
urls = { | ||
@Url(mountUrl = "/admin/archetypeNew") | ||
}, | ||
encoder = OnePageParameterEncoder.class, | ||
action = { | ||
@AuthorizationAction(actionUri = PageAdminConfiguration.AUTH_CONFIGURATION_ALL, | ||
label = PageAdminConfiguration.AUTH_CONFIGURATION_ALL_LABEL, | ||
description = PageAdminConfiguration.AUTH_CONFIGURATION_ALL_DESCRIPTION), | ||
@AuthorizationAction(actionUri = AuthorizationConstants.AUTZ_UI_ARCHETYPES_ALL_URL, | ||
label = "PageArchetypes.auth.archetypesAll.label", | ||
description = "PageArchetypes.auth.archetypesAll.description"), | ||
@AuthorizationAction(actionUri = AuthorizationConstants.AUTZ_UI_ARCHETYPE_URL, | ||
label = "PageArchetype.auth.user.label", | ||
description = "PageArchetype.auth.archetype.description") | ||
}) | ||
public class PageArchetype extends PageFocusDetails<ArchetypeType, FocusDetailsModels<ArchetypeType>> { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public PageArchetype() { | ||
super(); | ||
} | ||
|
||
public PageArchetype(PageParameters parameters) { | ||
super(parameters); | ||
} | ||
|
||
public PageArchetype(final PrismObject<ArchetypeType> role) { | ||
super(role); | ||
} | ||
|
||
@Override | ||
protected Class<ArchetypeType> getType() { | ||
return ArchetypeType.class; | ||
} | ||
|
||
@Override | ||
protected Panel createSummaryPanel(String id, LoadableModel<ArchetypeType> summaryModel) { | ||
return new ArchetypeSummaryPanel(id, summaryModel, this); | ||
} | ||
|
||
// @Override | ||
// protected AssignmentHolderDetailsModel<ArchetypeType> createObjectDetailsModels(PrismObject<ArchetypeType> object) { | ||
// return new CaseDetailsModels(createPrismObejctModel(object), this); | ||
// } | ||
|
||
// @Override | ||
// protected OperationalButtonsPanel createButtonsPanel(String id, LoadableModel<PrismObjectWrapper<ArchetypeType>> wrapperModel) { | ||
// return new CaseOperationalButtonsPanel(id, wrapperModel); | ||
// } | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...a/com/evolveum/midpoint/gui/impl/page/admin/archetype/component/ArchetypePolicyPanel.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,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2021 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:panel> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div wicket:id="panel" /> | ||
</div> | ||
</div> | ||
</wicket:panel> | ||
</body> | ||
</html> |
47 changes: 47 additions & 0 deletions
47
...a/com/evolveum/midpoint/gui/impl/page/admin/archetype/component/ArchetypePolicyPanel.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,47 @@ | ||
/* | ||
* Copyright (c) 2021 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.archetype.component; | ||
|
||
import com.evolveum.midpoint.gui.api.prism.ItemStatus; | ||
import com.evolveum.midpoint.gui.impl.page.admin.AbstractObjectMainPanel; | ||
import com.evolveum.midpoint.gui.impl.page.admin.assignmentholder.FocusDetailsModels; | ||
import com.evolveum.midpoint.gui.impl.page.admin.configuration.component.ContainerOfSystemConfigurationPanel; | ||
import com.evolveum.midpoint.util.logging.Trace; | ||
import com.evolveum.midpoint.util.logging.TraceManager; | ||
import com.evolveum.midpoint.web.application.PanelDisplay; | ||
import com.evolveum.midpoint.web.application.PanelInstance; | ||
import com.evolveum.midpoint.web.application.PanelType; | ||
import com.evolveum.midpoint.web.model.PrismContainerWrapperModel; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.*; | ||
|
||
@PanelType(name = "archetypePolicy") | ||
@PanelInstance(identifier = "archetypePolicy", | ||
applicableFor = ArchetypeType.class, | ||
status = ItemStatus.NOT_CHANGED, | ||
display = @PanelDisplay(label = "PageArchetype.archetypePolicy", order = 140)) | ||
public class ArchetypePolicyPanel extends AbstractObjectMainPanel<ArchetypeType, FocusDetailsModels<ArchetypeType>> { | ||
private static final long serialVersionUID = 1L; | ||
|
||
private static final Trace LOGGER = TraceManager.getTrace(ArchetypePolicyPanel.class); | ||
private static final String ID_PANEL = "panel"; | ||
|
||
private static final String DOT_CLASS = ArchetypePolicyPanel.class.getName() + "."; | ||
|
||
public ArchetypePolicyPanel(String id, FocusDetailsModels<ArchetypeType> model, ContainerPanelConfigurationType config) { | ||
super(id, model, config); | ||
} | ||
|
||
@Override | ||
protected void initLayout() { | ||
ContainerOfSystemConfigurationPanel panel = | ||
new ContainerOfSystemConfigurationPanel<ArchetypePolicyType>(ID_PANEL, | ||
PrismContainerWrapperModel.fromContainerWrapper(getObjectWrapperModel(), ArchetypeType.F_ARCHETYPE_POLICY), | ||
ArchetypePolicyType.COMPLEX_TYPE); | ||
add(panel); | ||
} | ||
|
||
} |
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.