private Map < String , ScoreComponentSettings > generateWidgetSettings ( ScoreCriteriaSettings scoreCriteriaSettings ) { Map < String , ScoreComponentSettings > scoreParamSettingsMap = new HashMap <> ( ) ; addSettingsToMap ( scoreParamSettingsMap , Constants . WIDGET_BUILD , getSettingsIfEnabled ( scoreCriteriaSettings . getBuild ( ) ) ) ; addSettingsToMap ( scoreParamSettingsMap , Constants . WIDGET_DEPLOY , getSettingsIfEnabled ( scoreCriteriaSettings . getDeploy ( ) ) ) ; addSettingsToMap ( scoreParamSettingsMap , Constants . WIDGET_CODE_ANALYSIS , getSettingsIfEnabled ( scoreCriteriaSettings . getQuality ( ) ) ) ; addSettingsToMap ( scoreParamSettingsMap , Constants . WIDGET_GITHUB_SCM , getSettingsIfEnabled ( scoreCriteriaSettings . getScm ( ) ) ) ; return scoreParamSettingsMap ; }
Generate criteria settings for each widget type