main/src/main/java/org/onap/policy/pap/main/rest/depundep/ProviderBase.java
/**
     * Makes an UPDATE message for a particular PDP.
     *
     * @param data session data
     * @param group group to which the PDP should belong
     * @param subgroup subgroup to which the PDP should belong
     * @param pdp the PDP of interest
     * @return a new UPDATE message
     */
Makes an UPDATE message for a particular PDP.
Makes an UPDATE message for a particular PDP .
private PdpUpdate makeUpdate(SessionData data, PdpGroup group, PdpSubGroup subgroup, Pdp pdp) {
        PdpUpdate update = new PdpUpdate();
        update.setName(pdp.getInstanceId());
        update.setDescription(group.getDescription());
        update.setPdpGroup(group.getName());
        update.setPdpSubgroup(subgroup.getPdpType());
        update.setPolicies(subgroup.getPolicies().stream().map(ToscaPolicyIdentifierOptVersion::new)
                        .map(ident -> getPolicy(data, ident)).collect(Collectors.toList()));
        return update;
    }
private PdpUpdate makeUpdate ( SessionData data , PdpGroup group , PdpSubGroup subgroup , Pdp pdp ) { PdpUpdate update = new PdpUpdate ( ) ; update . setName ( pdp . getInstanceId ( ) ) ; update . setDescription ( group . getDescription ( ) ) ; update . setPdpGroup ( group . getName ( ) ) ; update . setPdpSubgroup ( subgroup . getPdpType ( ) ) ; update . setPolicies ( subgroup . getPolicies ( ) . stream ( ) . map ( ToscaPolicyIdentifierOptVersion :: new ) . map ( ident -> getPolicy ( data , ident ) ) . collect ( Collectors . toList ( ) ) ) ; return update ; }
Makes an UPDATE message for a particular PDP.
Makes an UPDATE message for a particular PDP .