if (application == null) {
log.warn(APPLICATION_LOOKUP_FAILED);
return failure(APPLICATION_LOOKUP_FAILED);
}
ScanParametersBean bean = new ScanParametersBean();
if (request.getParameter("sourceCodeAccessLevel") != null) {
bean.setSourceCodeAccessLevel(request.getParameter("sourceCodeAccessLevel"));
}
if (request.getParameter("frameworkType") != null) {
bean.setApplicationType(request.getParameter("frameworkType"));
}
if (request.getParameter("repositoryUrl") != null) {
bean.setSourceCodeUrl(request.getParameter("repositoryUrl"));
}
scanParametersService.saveConfiguration(application, bean);
return writeSuccessObjectWithView(application, AllViews.RestViewApplication2_1.class);