Skip to content

Commit

Permalink
url mapping for details pages
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Jul 8, 2021
1 parent 03c25e7 commit b667337
Showing 1 changed file with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
package com.evolveum.midpoint.web.security;

import static com.evolveum.midpoint.security.api.AuthorizationConstants.*;
import static com.evolveum.midpoint.web.page.admin.configuration.PageAdminConfiguration.AUTH_CONFIGURATION_ALL;

import com.evolveum.midpoint.util.DisplayableValue;
import com.evolveum.midpoint.web.application.AuthorizationActionValue;
import com.evolveum.midpoint.web.page.admin.configuration.PageAdminConfiguration;

/**
* @author lazyman
Expand Down Expand Up @@ -50,13 +52,38 @@ public enum PageUrlMapping {
"PageAdminResources.authUri.resourcesAll.label", "PageAdminResources.authUri.resourcesAll.description"),
new AuthorizationActionValue(AUTZ_GUI_ALL_URL,
"PageAdminRoles.authUri.rolesAll.label", "PageAdminRoles.authUri.guiAll.description")),
CASE_DETAILS("/admin/workItem/**",
WORK_ITEM_DETAILS("/admin/workItem/**",
new AuthorizationActionValue(AUTZ_UI_WORK_ITEM_URL,
"PageCaseWorkItem.authUri.workItemDetails.label", "PageCaseWorkItem.authUri.workItemDetails.description"),
new AuthorizationActionValue(AUTZ_UI_WORK_ITEMS_ALL_URL,
"PageCaseWorkItems.authUri.workItemsAll.label", "PageAdminResources.authUri.workItemsAll.description"),
new AuthorizationActionValue(AUTZ_GUI_ALL_URL,
"PageCaseWorkItems.authUri.guiAll.label", "PageAdminRoles.authUri.guiAll.description")),
CASE_DETAILS("/admin/case/**",
new AuthorizationActionValue(AUTZ_UI_CASES_ALL_URL,
"PageAdminCases.auth.casesAll.label", "PageAdminCases.auth.casesAll.description"),
new AuthorizationActionValue(AUTZ_UI_CASE_URL,
"PageCase.auth.case.label", "PageCase.auth.case.description"),
new AuthorizationActionValue(AUTZ_GUI_ALL_URL,
"PageCaseWorkItems.authUri.guiAll.label", "PageAdminRoles.authUri.guiAll.description")),
OBJECT_COLLECTION_DETAILS("/admin/objectCollection/**",
new AuthorizationActionValue(AUTH_CONFIGURATION_ALL,
PageAdminConfiguration.AUTH_CONFIGURATION_ALL_LABEL, PageAdminConfiguration.AUTH_CONFIGURATION_ALL_DESCRIPTION),
new AuthorizationActionValue(AUTZ_UI_OBJECT_COLLECTIONS_ALL_URL,
"PageObjectCollection.auth.objectCollectionsAll.label", "PageObjectCollection.auth.objectCollectionsAll.description"),
new AuthorizationActionValue(AUTZ_UI_OBJECT_COLLECTION_URL,
"PageObjectCollection.auth.objectCollection.label", "PageObjectCollection.auth.objectCollection.description"),
new AuthorizationActionValue(AUTZ_GUI_ALL_URL,
"PageCaseWorkItems.authUri.guiAll.label", "PageAdminRoles.authUri.guiAll.description")),
ARCHETYPE_DETAILS("/admin/archetype/**",
new AuthorizationActionValue(AUTH_CONFIGURATION_ALL,
PageAdminConfiguration.AUTH_CONFIGURATION_ALL_LABEL, PageAdminConfiguration.AUTH_CONFIGURATION_ALL_DESCRIPTION),
new AuthorizationActionValue(AUTZ_UI_ARCHETYPES_ALL_URL,
"PageArchetypes.auth.archetypesAll.label", "PageArchetypes.auth.archetypesAll.description"),
new AuthorizationActionValue(AUTZ_UI_ARCHETYPE_URL,
"PageArchetype.auth.user.label", "PageArchetype.auth.archetype.description"),
new AuthorizationActionValue(AUTZ_GUI_ALL_URL,
"PageCaseWorkItems.authUri.guiAll.label", "PageAdminRoles.authUri.guiAll.description")),
ACTUATOR("/actuator/**",
new AuthorizationActionValue(AUTZ_ACTUATOR_ALL_URL,
"ActuatorEndpoint.authActuator.all.label", "ActuatorEndpoint.authActuator.all.description")),
Expand Down

0 comments on commit b667337

Please sign in to comment.