main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeployProvider.java
/**
     * Deploys or updates PDP policies using the simple API. This is the method that does
     * the actual work.
     *
     * @param data session data
     * @param extPolicies external PDP policies
     * @return a list of requests that should be sent to configure the PDPs
     * @throws PfModelException if an error occurred
     */
Deploys or updates PDP policies using the simple API. This is the method that does
the actual work.

@param data session data
@param extPolicies external PDP policies
@return a list of requests that should be sent to configure the PDPs
@throws PfModelException if an error occurred
Deploys or updates PDP policies using the simple API . This is the method that does the actual work . @param data session data @param extPolicies external PDP policies @return a list of requests that should be sent to configure the PDPs @throws PfModelException if an error occurred
private void deploySimplePolicies(SessionData data, PdpDeployPolicies policies) throws PfModelException {
        for (ToscaPolicyIdentifierOptVersion desiredPolicy : policies.getPolicies()) {
            try {
                processPolicy(data, desiredPolicy);
            } catch (PfModelException | RuntimeException e) {
                logger.warn("failed to deploy policy: {}", desiredPolicy);
                throw e;
            }
        }
    }
private void deploySimplePolicies ( SessionData data , PdpDeployPolicies policies ) throws PfModelException { for ( ToscaPolicyIdentifierOptVersion desiredPolicy : policies . getPolicies ( ) ) { try { processPolicy ( data , desiredPolicy ) ; } catch ( PfModelException | RuntimeException e ) { logger . warn ( "failed to deploy policy: {}" , desiredPolicy ) ; throw e ; } } }
Deploys or updates PDP policies using the simple API.
Deploys or updates PDP policies using the simple API .
// no need to log the error here, as it will be logged by the invoker