-
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.
support for org details and serivce details pages. soem fixes for old…
… resource detials page
- Loading branch information
Showing
13 changed files
with
153 additions
and
16 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
14 changes: 14 additions & 0 deletions
14
gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/org/PageOrg.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,14 @@ | ||
<!-- | ||
~ 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. | ||
--> | ||
<!DOCTYPE html> | ||
<html xmlns:wicket="http://wicket.apache.org"> | ||
<body> | ||
<wicket:extend> | ||
<wicket:child /> | ||
</wicket:extend> | ||
</body> | ||
</html> |
48 changes: 48 additions & 0 deletions
48
gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/org/PageOrg.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,48 @@ | ||
/* | ||
* 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.org; | ||
|
||
import com.evolveum.midpoint.gui.api.model.LoadableModel; | ||
import com.evolveum.midpoint.gui.impl.page.admin.focus.PageFocusDetails; | ||
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.users.component.OrgSummaryPanel; | ||
import com.evolveum.midpoint.web.util.OnePageParameterEncoder; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType; | ||
|
||
import org.apache.wicket.markup.html.panel.Panel; | ||
import org.apache.wicket.request.mapper.parameter.PageParameters; | ||
|
||
@PageDescriptor( | ||
urls = { | ||
@Url(mountUrl = "/admin/org") | ||
}, | ||
encoder = OnePageParameterEncoder.class, action = { | ||
@AuthorizationAction(actionUri = AuthorizationConstants.AUTZ_UI_ORG_ALL_URL, | ||
label = "PageAdminUsers.auth.orgAll.label", | ||
description = "PageAdminUsers.auth.orgAll.description"), | ||
@AuthorizationAction(actionUri = AuthorizationConstants.AUTZ_UI_ORG_UNIT_URL, | ||
label = "PageOrgUnit.auth.orgUnit.label", | ||
description = "PageOrgUnit.auth.orgUnit.description") }) | ||
public class PageOrg extends PageFocusDetails<OrgType> { | ||
|
||
public PageOrg(PageParameters pageParameters) { | ||
super(pageParameters); | ||
} | ||
|
||
@Override | ||
protected Class<OrgType> getType() { | ||
return OrgType.class; | ||
} | ||
|
||
@Override | ||
protected Panel getSummaryPanel(String id, LoadableModel<OrgType> summaryModel) { | ||
return new OrgSummaryPanel(id, summaryModel, this); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...dmin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/service/PageService.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,14 @@ | ||
<!-- | ||
~ 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. | ||
--> | ||
<!DOCTYPE html> | ||
<html xmlns:wicket="http://wicket.apache.org"> | ||
<body> | ||
<wicket:extend> | ||
<wicket:child /> | ||
</wicket:extend> | ||
</body> | ||
</html> |
51 changes: 51 additions & 0 deletions
51
...dmin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/service/PageService.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,51 @@ | ||
/* | ||
* 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.service; | ||
|
||
import com.evolveum.midpoint.gui.api.model.LoadableModel; | ||
import com.evolveum.midpoint.gui.impl.page.admin.focus.PageFocusDetails; | ||
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.roles.component.RoleSummaryPanel; | ||
import com.evolveum.midpoint.web.page.admin.users.component.ServiceSummaryPanel; | ||
import com.evolveum.midpoint.web.util.OnePageParameterEncoder; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.RoleType; | ||
|
||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ServiceType; | ||
|
||
import org.apache.wicket.markup.html.panel.Panel; | ||
import org.apache.wicket.request.mapper.parameter.PageParameters; | ||
|
||
@PageDescriptor( | ||
urls = { | ||
@Url(mountUrl = "/admin/serviceNew") | ||
}, | ||
encoder = OnePageParameterEncoder.class, action = { | ||
@AuthorizationAction(actionUri = AuthorizationConstants.AUTZ_UI_SERVICES_ALL_URL, | ||
label = "PageAdminServices.auth.servicesAll.label", | ||
description = "PageAdminServices.auth.servicesAll.description"), | ||
@AuthorizationAction(actionUri = AuthorizationConstants.AUTZ_UI_SERVICE_URL, | ||
label = "PageService.auth.role.label", | ||
description = "PageService.auth.role.description") }) | ||
public class PageService extends PageFocusDetails<ServiceType> { | ||
|
||
public PageService(PageParameters pageParameters) { | ||
super(pageParameters); | ||
} | ||
|
||
@Override | ||
protected Class<ServiceType> getType() { | ||
return ServiceType.class; | ||
} | ||
|
||
@Override | ||
protected Panel getSummaryPanel(String id, LoadableModel<ServiceType> summaryModel) { | ||
return new ServiceSummaryPanel(id, summaryModel, PageService.this); | ||
} | ||
} |
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
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