From 00b77b9ed6de5779212fecd30b71ebb615f89c3c Mon Sep 17 00:00:00 2001 From: mmis Date: Fri, 14 Sep 2018 09:00:25 +0100 Subject: Aligned decoder with forwarder for opt. policies Changed decoder for optimization policies to generate instance of OptimizationPolicy (instead of PdpxPolicy) as expected by the forwarder. Without this change there is a mismatch between the decoder and the forwarder. Added parameters for configuring the static elements of the optimization policies and setting of these elements. Issue-ID: POLICY-927 Change-Id: Ib91a905dc89eed13622fb88e4dd19b3cb9f62c75 Signed-off-by: mmis --- .../org/onap/policy/distribution/model/OptimizationPolicy.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'model/src/main/java') diff --git a/model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java b/model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java index 971077cc..71b7cef7 100644 --- a/model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java +++ b/model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java @@ -30,7 +30,6 @@ public class OptimizationPolicy implements Policy { private static final String OPTIMIZATION = "Optimization"; private String policyName; private String policyDescription; - private String policyConfigType; private String onapName; private String configBody; private String configBodyType; @@ -62,11 +61,7 @@ public class OptimizationPolicy implements Policy { } public String getPolicyConfigType() { - return policyConfigType; - } - - public void setPolicyConfigType(final String policyConfigType) { - this.policyConfigType = policyConfigType; + return OPTIMIZATION; } public String getOnapName() { -- cgit 1.2.3-korg