main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeployProvider.java
/**
     * Creates or updates PDP groups.
     *
     * @param groups PDP group configurations to be created or updated
     * @throws PfModelException if an error occurred
     */
Creates or updates PDP groups.
@param groups PDP group configurations to be created or updated
@throws PfModelException if an error occurred
Creates or updates PDP groups . @param groups PDP group configurations to be created or updated @throws PfModelException if an error occurred
public void createOrUpdateGroups(PdpGroups groups) throws PfModelException {
        ValidationResult result = groups.validatePapRest();
        if (!result.isValid()) {
            String msg = result.getResult().trim();
            logger.warn(msg);
            throw new PfModelException(Status.BAD_REQUEST, msg);
        }
        process(groups, this::createOrUpdate);
    }
public void createOrUpdateGroups ( PdpGroups groups ) throws PfModelException { ValidationResult result = groups . validatePapRest ( ) ; if ( ! result . isValid ( ) ) { String msg = result . getResult ( ) . trim ( ) ; logger . warn ( msg ) ; throw new PfModelException ( Status . BAD_REQUEST , msg ) ; } process ( groups , this :: createOrUpdate ) ; }
Creates or updates PDP groups.
Creates or updates PDP groups .