Removing deployed from policy/api
[policy/api.git] / main / src / main / java / org / onap / policy / api / main / rest / provider / PolicyProvider.java
index afed316..35d0e80 100644 (file)
 \r
 package org.onap.policy.api.main.rest.provider;\r
 \r
-import java.util.ArrayList;\r
-import java.util.List;\r
-import java.util.Map;\r
-\r
-import org.apache.commons.lang3.tuple.Pair;\r
-import org.onap.policy.models.base.PfConceptKey;\r
 import org.onap.policy.models.base.PfModelException;\r
-import org.onap.policy.models.tosca.authorative.concepts.ToscaPolicy;\r
 import org.onap.policy.models.tosca.authorative.concepts.ToscaPolicyFilter;\r
 import org.onap.policy.models.tosca.authorative.concepts.ToscaServiceTemplate;\r
 \r
@@ -83,24 +76,6 @@ public class PolicyProvider extends CommonModelProvider {
         return getFilteredPolicies(policyTypeId, policyTypeVersion, policyId, ToscaPolicyFilter.LATEST_VERSION);\r
     }\r
 \r
-    /**\r
-     * Retrieves a list of deployed policies in each pdp group.\r
-     *\r
-     * @param policyTypeId the ID of policy type\r
-     * @param policyTypeVersion the version of policy type\r
-     * @param policyId the ID of the policy\r
-     *\r
-     * @return a list of deployed policies in each pdp group\r
-     *\r
-     * @throws PfModelException the PfModel parsing exception\r
-     */\r
-    public Map<Pair<String, String>, List<ToscaPolicy>> fetchDeployedPolicies(String policyTypeId,\r
-            String policyTypeVersion, String policyId) throws PfModelException {\r
-\r
-        return collectDeployedPolicies(policyId, new PfConceptKey(policyTypeId, policyTypeVersion),\r
-                modelsProvider::getPolicyList, List::addAll, new ArrayList<>(5));\r
-    }\r
-\r
     /**\r
      * Creates one or more new policies for the same policy type ID and version.\r
      *\r