diff options
author | PatrikBuhr <patrik.buhr@est.tech> | 2023-04-17 13:00:15 +0200 |
---|---|---|
committer | PatrikBuhr <patrik.buhr@est.tech> | 2023-04-19 09:09:31 +0200 |
commit | 9f1d9499e4e1ca40fddffb195353148cc3271b9c (patch) | |
tree | 5eef78509d35740629a0d0c7ae814a58b6a3919e /a1-policy-management/src | |
parent | f07e4b397c60c21ae275a7c98471b64e60f14f04 (diff) |
A1 PMS support for fine grained access control -A1 London
Documentation updates.
Issue-ID: CCSDK-3889
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
Change-Id: Iaa73d0128a4c466ed2b3d1803af66368d3c37fa6
Diffstat (limited to 'a1-policy-management/src')
4 files changed, 22 insertions, 8 deletions
diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java index b6d3a076..9f4f4420 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java @@ -24,6 +24,7 @@ import io.swagger.v3.oas.annotations.OpenAPIDefinition; import io.swagger.v3.oas.annotations.info.Info; import io.swagger.v3.oas.annotations.info.License; +import org.onap.ccsdk.oran.a1policymanagementservice.controllers.authorization.AuthorizationConsts; import org.onap.ccsdk.oran.a1policymanagementservice.controllers.v2.ConfigurationController; import org.onap.ccsdk.oran.a1policymanagementservice.controllers.v2.Consts; import org.onap.ccsdk.oran.a1policymanagementservice.controllers.v2.PolicyController; @@ -63,7 +64,7 @@ public class SwaggerConfig { "<li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li>" + // "</ul>" + // - "<h2>APIs provided by the service</h2>" + // + "<h2>APIs provided or defined by the service</h2>" + // H3 + PolicyController.API_NAME + H3_END + // "<p>This is an API for management of A1 Policies.</p>" + // "<ul>" + // @@ -75,23 +76,36 @@ public class SwaggerConfig { H3 + ConfigurationController.API_NAME + H3_END + // "<p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p>" + // + H3 + Consts.V2_API_SERVICE_CALLBACKS_NAME + H3_END + // "<p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p>" + // + H3 + RicRepositoryController.API_NAME + H3_END + // "<p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p>" - + H3 + StatusController.API_NAME + H3_END + // - "<p>API used for supervision of the PMS component.</p>" + // + + // + + H3 + StatusController.API_NAME + H3_END + // + "<p>API used for supervision of the PMS component.</p>" // + + // + H3 + ServiceController.API_NAME + H3_END + // "<p>" // + "API used for registering services that uses PMS." + " Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services." + " Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use." + "</p>" + // + + H3 + AuthorizationConsts.API_NAME + H3_END + // + "<p>" // + + "API used for access control of A1 Policy access." + + " If configured, an external authorization provider is requested to grant access to the A1 Policy type." + + "</p>" + // + H3 + "Spring Boot Actuator" + H3_END + // "<p>" // + "Provides generic functions used to monitor and manage the Spring web application." + // "</p>"; - public static final String VERSION = "1.1.0"; + public static final String VERSION = "1.2.0"; } diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/authorization/AuthorizationConsts.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/authorization/AuthorizationConsts.java index a905b9d1..cc2d2341 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/authorization/AuthorizationConsts.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/authorization/AuthorizationConsts.java @@ -22,8 +22,8 @@ package org.onap.ccsdk.oran.a1policymanagementservice.controllers.authorization; public class AuthorizationConsts { - public static final String AUTH_API_NAME = "Authorization API"; - public static final String AUTH_API_DESCRIPTION = + public static final String API_NAME = "Authorization API"; + public static final String API_DESCRIPTION = """ API used for authorization of information A1 policy access (this is provided by an authorization producer such as OPA). Note that this API is called by PMS, it is not provided. diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/Consts.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/Consts.java index 7f954e90..c554dbd5 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/Consts.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/Consts.java @@ -32,7 +32,7 @@ public class Consts { public static final String V2_API_ROOT = "/a1-policy/v2"; - public static final String V2_API_SERVICE_CALLBACKS_NAME = "Callbacks"; + public static final String V2_API_SERVICE_CALLBACKS_NAME = "Service callbacks"; public static final String V2_API_SERVICE_CALLBACKS_DESCRIPTION = ""; private Consts() {} diff --git a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/OpenPolicyAgentSimulatorController.java b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/OpenPolicyAgentSimulatorController.java index 236c31b8..3e63b468 100644 --- a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/OpenPolicyAgentSimulatorController.java +++ b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/OpenPolicyAgentSimulatorController.java @@ -52,7 +52,7 @@ import org.springframework.web.bind.annotation.RequestHeader; import org.springframework.web.bind.annotation.RestController; @RestController("OpenPolicyAgentSimulatorController") -@Tag(name = AuthorizationConsts.AUTH_API_NAME, description = AuthorizationConsts.AUTH_API_DESCRIPTION) +@Tag(name = AuthorizationConsts.API_NAME, description = AuthorizationConsts.API_DESCRIPTION) public class OpenPolicyAgentSimulatorController { private static Gson gson = new GsonBuilder().disableHtmlEscaping().create(); |