aboutsummaryrefslogtreecommitdiffstats
path: root/forwarding
diff options
context:
space:
mode:
authorramverma <ram.krishna.verma@est.tech>2019-07-17 11:03:26 +0000
committerramverma <ram.krishna.verma@est.tech>2019-07-17 11:03:26 +0000
commitcf748512392e5d3257de629dc57fb353dc073c92 (patch)
tree8e81a773d1f9556669b344d5f31dd139999ef2f6 /forwarding
parent5f032e0363703239f30dff29914dc41dd3abca48 (diff)
Changing policy/distribution to use policy/models
1) Changed policy distribution framework to use entities from policy/models 2) Changed all the test cases. 3) Commented few test cases which will be fixed along with code fixes. 4) Will be removing the old policy entities once all the pieces are ready. Change-Id: I1fd7b975b2e072c0b24e429903c9ca4796173929 Issue-ID: POLICY-1888 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Diffstat (limited to 'forwarding')
-rw-r--r--forwarding/pom.xml5
-rw-r--r--forwarding/src/main/java/org/onap/policy/distribution/forwarding/PolicyForwarder.java5
2 files changed, 8 insertions, 2 deletions
diff --git a/forwarding/pom.xml b/forwarding/pom.xml
index 5a2e0cbd..68f20441 100644
--- a/forwarding/pom.xml
+++ b/forwarding/pom.xml
@@ -41,5 +41,10 @@
<artifactId>common-parameters</artifactId>
<version>${policy.common.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.onap.policy.models</groupId>
+ <artifactId>policy-models-tosca</artifactId>
+ <version>${policy.models.version}</version>
+ </dependency>
</dependencies>
</project>
diff --git a/forwarding/src/main/java/org/onap/policy/distribution/forwarding/PolicyForwarder.java b/forwarding/src/main/java/org/onap/policy/distribution/forwarding/PolicyForwarder.java
index 311bbcf7..d07c707a 100644
--- a/forwarding/src/main/java/org/onap/policy/distribution/forwarding/PolicyForwarder.java
+++ b/forwarding/src/main/java/org/onap/policy/distribution/forwarding/PolicyForwarder.java
@@ -21,7 +21,8 @@
package org.onap.policy.distribution.forwarding;
import java.util.Collection;
-import org.onap.policy.distribution.model.Policy;
+
+import org.onap.policy.models.tosca.authorative.concepts.ToscaEntity;
/**
* Forwards polices.
@@ -49,6 +50,6 @@ public interface PolicyForwarder {
* @param policies the policies to forward
* @throws PolicyForwardingException if an error occurs when forwarding the given policy
*/
- void forward(Collection<Policy> policies) throws PolicyForwardingException;
+ void forward(Collection<ToscaEntity> policies) throws PolicyForwardingException;
}