diff options
author | adheli.tavares <adheli.tavares@est.tech> | 2024-01-03 15:00:40 +0000 |
---|---|---|
committer | adheli.tavares <adheli.tavares@est.tech> | 2024-01-18 10:42:28 +0000 |
commit | 2e7b3c77cf6f7bf68233368bce17edb598daedc8 (patch) | |
tree | c6915325f1ba9705b3072f950b2d5c7b543a570d /applications | |
parent | ef722a6ef6a64b69bf152c0187992f0ee91a2682 (diff) |
Support for kafka within xacml tutorial
Issue-ID: POLICY-4202
Change-Id: I7bb47dce25d7613221a13f8437030f02a978770d
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'applications')
-rw-r--r-- | applications/monitoring/src/main/java/org/onap/policy/xacml/pdp/application/monitoring/MonitoringPdpApplication.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/applications/monitoring/src/main/java/org/onap/policy/xacml/pdp/application/monitoring/MonitoringPdpApplication.java b/applications/monitoring/src/main/java/org/onap/policy/xacml/pdp/application/monitoring/MonitoringPdpApplication.java index 95150c37..626c9163 100644 --- a/applications/monitoring/src/main/java/org/onap/policy/xacml/pdp/application/monitoring/MonitoringPdpApplication.java +++ b/applications/monitoring/src/main/java/org/onap/policy/xacml/pdp/application/monitoring/MonitoringPdpApplication.java @@ -3,7 +3,7 @@ * ONAP * ================================================================================ * Copyright (C) 2019-2021 AT&T Intellectual Property. All rights reserved. - * Modifications Copyright (C) 2021 Nordix Foundation. + * Modifications Copyright (C) 2021, 2024 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,6 +25,7 @@ package org.onap.policy.xacml.pdp.application.monitoring; import com.att.research.xacml.api.Response; import java.util.Arrays; +import java.util.List; import java.util.Map; import java.util.Map.Entry; import org.apache.commons.lang3.tuple.Pair; @@ -54,7 +55,7 @@ public class MonitoringPdpApplication extends StdXacmlApplicationServiceProvider public static final String VERSION_100 = "1.0.0"; - private StdCombinedPolicyResultsTranslator translator = new StdCombinedPolicyResultsTranslator(); + private final StdCombinedPolicyResultsTranslator translator = new StdCombinedPolicyResultsTranslator(); /** * Constructor. @@ -63,9 +64,9 @@ public class MonitoringPdpApplication extends StdXacmlApplicationServiceProvider super(); applicationName = "monitoring"; - actions = Arrays.asList("configure"); + actions = List.of("configure"); // - // By default this supports just Monitoring policy types + // By default, this supports just Monitoring policy types // supportedPolicyTypes.add(new ToscaConceptIdentifier(ONAP_MONITORING_BASE_POLICY_TYPE, VERSION_100)); } |