main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeployProvider.java
/**
     * Performs additional validations of a group, but does not examine the subgroups.
     *
     * @param group the group to be validated
     * @param result the validation result
     */
Performs additional validations of a group, but does not examine the subgroups.
@param group the group to be validated
@param result the validation result
Performs additional validations of a group but does not examine the subgroups . @param group the group to be validated @param result the validation result
private void validateGroupOnly(PdpGroup group, BeanValidationResult result) {
        if (group.getPdpGroupState() == null) {
            return;
        }
        switch (group.getPdpGroupState()) {
            case ACTIVE:
            case PASSIVE:
                break;
            default:
                result.addResult(new ObjectValidationResult("pdpGroupState", group.getPdpGroupState(),
                                ValidationStatus.INVALID, "must be null, ACTIVE, or PASSIVE"));
                break;
        }
    }
private void validateGroupOnly ( PdpGroup group , BeanValidationResult result ) { if ( group . getPdpGroupState ( ) == null ) { return ; } switch ( group . getPdpGroupState ( ) ) { case ACTIVE : case PASSIVE : break ; default : result . addResult ( new ObjectValidationResult ( "pdpGroupState" , group . getPdpGroupState ( ) , ValidationStatus . INVALID , "must be null, ACTIVE, or PASSIVE" ) ) ; break ; } }
Performs additional validations of a group, but does not examine the subgroups.
Performs additional validations of a group but does not examine the subgroups .