main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeployProvider.java
/**
     * Adds a new subgroup.
     *
     * @param data session data
     * @param subgrp the subgroup to be added, updated to fully qualified versions upon return
     * @return the validation result
     * @throws PfModelException if an error occurred
     */
Adds a new subgroup.
@param data session data
@param subgrp the subgroup to be added, updated to fully qualified versions upon return
@return the validation result
@throws PfModelException if an error occurred
Adds a new subgroup . @param data session data @param subgrp the subgroup to be added updated to fully qualified versions upon return @return the validation result @throws PfModelException if an error occurred
private ValidationResult addSubGroup(SessionData data, PdpSubGroup subgrp) throws PfModelException {
        subgrp.setCurrentInstanceCount(0);
        subgrp.setPdpInstances(Collections.emptyList());
        BeanValidationResult result = new BeanValidationResult(subgrp.getPdpType(), subgrp);
        result.addResult(validateSupportedTypes(data, subgrp));
        result.addResult(validatePolicies(data, null, subgrp));
        return result;
    }
private ValidationResult addSubGroup ( SessionData data , PdpSubGroup subgrp ) throws PfModelException { subgrp . setCurrentInstanceCount ( 0 ) ; subgrp . setPdpInstances ( Collections . emptyList ( ) ) ; BeanValidationResult result = new BeanValidationResult ( subgrp . getPdpType ( ) , subgrp ) ; result . addResult ( validateSupportedTypes ( data , subgrp ) ) ; result . addResult ( validatePolicies ( data , null , subgrp ) ) ; return result ; }
Adds a new subgroup.
Adds a new subgroup .