From eeb9ce02502bf334bcdf9e73281ab41ce99f2121 Mon Sep 17 00:00:00 2001 From: isuri Date: Thu, 19 Oct 2023 11:38:11 +0530 Subject: [PATCH] servlet and pom modifications --- .../extension/api/util/APIUtil.java | 3 +++ .../pom.xml | 2 +- .../src/main/webapp/WEB-INF/cxf-servlet.xml | 25 ++++++++++++++++--- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.application.extension.api/src/main/java/io/entgra/device/mgt/core/apimgt/application/extension/api/util/APIUtil.java b/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.application.extension.api/src/main/java/io/entgra/device/mgt/core/apimgt/application/extension/api/util/APIUtil.java index 3be91a559e..6177e441d2 100644 --- a/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.application.extension.api/src/main/java/io/entgra/device/mgt/core/apimgt/application/extension/api/util/APIUtil.java +++ b/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.application.extension.api/src/main/java/io/entgra/device/mgt/core/apimgt/application/extension/api/util/APIUtil.java @@ -51,6 +51,8 @@ public class APIUtil { private static final String DEFAULT_ENTERPRISE_TAG= "androidforwork"; private static final String DEFAULT_ANALYTICS_MGT_TAG= "analytics_management"; + private static final String DEFAULT_DEVICE_ORGANIZATION_MGT_TAG= "deviceOrganization_management"; + public static final String PERMISSION_PROPERTY_NAME = "name"; public static String getAuthenticatedUser() { @@ -121,6 +123,7 @@ public class APIUtil { allowedApisTags.add(DEFAULT_ANALYTICS_ARTIFACT_TAG); allowedApisTags.add(DEFAULT_TRANSPORT_MGT_TAG); allowedApisTags.add(DEFAULT_ANALYTICS_MGT_TAG); + allowedApisTags.add(DEFAULT_DEVICE_ORGANIZATION_MGT_TAG); // In an environment only super tenant should be capable of calling this API tag if (PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId() == MultitenantConstants.SUPER_TENANT_ID) { diff --git a/components/device-mgt-extensions/io.entgra.device.mgt.core.device.mgt.extensions.device.organization.api/pom.xml b/components/device-mgt-extensions/io.entgra.device.mgt.core.device.mgt.extensions.device.organization.api/pom.xml index 3443528ad4..d28aa9aaa6 100644 --- a/components/device-mgt-extensions/io.entgra.device.mgt.core.device.mgt.extensions.device.organization.api/pom.xml +++ b/components/device-mgt-extensions/io.entgra.device.mgt.core.device.mgt.extensions.device.organization.api/pom.xml @@ -98,7 +98,7 @@ - + diff --git a/components/device-mgt-extensions/io.entgra.device.mgt.core.device.mgt.extensions.device.organization.api/src/main/webapp/WEB-INF/cxf-servlet.xml b/components/device-mgt-extensions/io.entgra.device.mgt.core.device.mgt.extensions.device.organization.api/src/main/webapp/WEB-INF/cxf-servlet.xml index 752c1a08a9..708b75980c 100644 --- a/components/device-mgt-extensions/io.entgra.device.mgt.core.device.mgt.extensions.device.organization.api/src/main/webapp/WEB-INF/cxf-servlet.xml +++ b/components/device-mgt-extensions/io.entgra.device.mgt.core.device.mgt.extensions.device.organization.api/src/main/webapp/WEB-INF/cxf-servlet.xml @@ -25,13 +25,32 @@ - + - + + + - + + + + + + + + + + + + + + + + + +