main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeployProvider.java
/**
     * Performs additional validations of a subgroup.
     *
     * @param data session data
     * @param dbsub the subgroup, from the DB
     * @param subgrp the subgroup to be validated, updated to fully qualified versions upon return
     * @param container container for additional validation results
     * @return {@code true} if the subgroup is valid, {@code false} otherwise
     * @throws PfModelException if an error occurred
     */
Performs additional validations of a subgroup.
Performs additional validations of a subgroup .
private boolean validateSubGroup(SessionData data, PdpSubGroup dbsub, PdpSubGroup subgrp,
                    BeanValidationResult container) throws PfModelException {
        BeanValidationResult result = new BeanValidationResult(subgrp.getPdpType(), subgrp);
        if (!ObjectUtils.equals(dbsub.getProperties(), subgrp.getProperties())) {
            result.addResult(new ObjectValidationResult("properties", "", ValidationStatus.INVALID,
                            "cannot change properties"));
        }
        result.addResult(validatePolicies(data, dbsub, subgrp));
        container.addResult(result);
        return result.isValid();
    }
private boolean validateSubGroup ( SessionData data , PdpSubGroup dbsub , PdpSubGroup subgrp , BeanValidationResult container ) throws PfModelException { BeanValidationResult result = new BeanValidationResult ( subgrp . getPdpType ( ) , subgrp ) ; if ( ! ObjectUtils . equals ( dbsub . getProperties ( ) , subgrp . getProperties ( ) ) ) { result . addResult ( new ObjectValidationResult ( "properties" , "" , ValidationStatus . INVALID , "cannot change properties" ) ) ; } result . addResult ( validatePolicies ( data , dbsub , subgrp ) ) ; container . addResult ( result ) ; return result . isValid ( ) ; }
Performs additional validations of a subgroup.
Performs additional validations of a subgroup .