main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeployProvider.java
/**
     * Performs additional validations of the supported policy types within a subgroup.
     *
     * @param data session data
     * @param subgrp the subgroup to be validated
     * @param result the validation result
     * @throws PfModelException if an error occurred
     */
Performs additional validations of the supported policy types within a subgroup.
@param data session data
@param subgrp the subgroup to be validated
@param result the validation result
@throws PfModelException if an error occurred
Performs additional validations of the supported policy types within a subgroup . @param data session data @param subgrp the subgroup to be validated @param result the validation result @throws PfModelException if an error occurred
private ValidationResult validateSupportedTypes(SessionData data, PdpSubGroup subgrp) throws PfModelException {
        BeanValidationResult result = new BeanValidationResult(subgrp.getPdpType(), subgrp);
        for (ToscaPolicyTypeIdentifier type : subgrp.getSupportedPolicyTypes()) {
            if (data.getPolicyType(type) == null) {
                result.addResult(new ObjectValidationResult("policy type", type, ValidationStatus.INVALID,
                                "unknown policy type"));
            }
        }
        return result;
    }
private ValidationResult validateSupportedTypes ( SessionData data , PdpSubGroup subgrp ) throws PfModelException { BeanValidationResult result = new BeanValidationResult ( subgrp . getPdpType ( ) , subgrp ) ; for ( ToscaPolicyTypeIdentifier type : subgrp . getSupportedPolicyTypes ( ) ) { if ( data . getPolicyType ( type ) == null ) { result . addResult ( new ObjectValidationResult ( "policy type" , type , ValidationStatus . INVALID , "unknown policy type" ) ) ; } } return result ; }
Performs additional validations of the supported policy types within a subgroup.
Performs additional validations of the supported policy types within a subgroup .