clns-acuity-admin/acuity-core/src/main/java/com/acuity/visualisations/web/service/wizard/study/StudyGroupingsService.java [96:114]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public String updateGroup(GroupRuleBase group, String sourceType, String remoteLocation, MultipartFile upload) throws Exception {
        if (sourceType.equals("source-local") && upload != null) {
            String message = GroupingsUtils.readGroupingValues(group, upload.getInputStream());
            if (StringUtils.hasText(message)) {
                return message;
            }
        } else {
            if (sourceType.equals("source-remote")) {
                String message = GroupingsUtils.readGroupingValuesFromSharedLocation(group, remoteLocation, provider);
                if (StringUtils.hasText(message)) {
                    return message;
                }
                group.setDataSource(remoteLocation);
            }
        }

        saveGroup(group);
        return Consts.EMPTY_STRING;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



clns-acuity-admin/acuity-core/src/main/java/com/acuity/visualisations/web/service/wizard/programme/ProgrammeGroupingsService.java [59:77]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public String updateGroup(GroupRuleBase group, String sourceType, String remoteLocation, MultipartFile upload) throws Exception {
        if (sourceType.equals("source-local") && upload != null) {
            String message = GroupingsUtils.readGroupingValues(group, upload.getInputStream());
            if (StringUtils.hasText(message)) {
                return message;
            }
        } else {
            if (sourceType.equals("source-remote")) {
                String message = GroupingsUtils.readGroupingValuesFromSharedLocation(group, remoteLocation, provider);
                if (StringUtils.hasText(message)) {
                    return message;
                }
                group.setDataSource(remoteLocation);
            }
        }

        saveGroup(group);
        return Consts.EMPTY_STRING;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



