RetailerViewBean retailerViewBean = frontofficeViewBeanFactory.buildViewBeanRetailer(requestUtil.getRequestData(request), retailer);
model.addAttribute(ModelConstants.RETAILER_VIEW_BEAN, retailerViewBean);
// STAR
String qualityOfServiceMax = "5";
EngineSetting engineSetting = engineSettingService.getSettingRetailerMaxScoreValue();
if(engineSetting != null){
qualityOfServiceMax = engineSetting.getDefaultValue();
EngineSettingValue engineSettingValue = engineSetting.getEngineSettingValue(EngineSettingService.ENGINE_SETTING_CONTEXT_STAR_SCORE_MAX);
if(engineSettingValue != null){
qualityOfServiceMax = engineSettingValue.getValue();
}
}
try {
model.addAttribute(ModelConstants.QUALITY_OF_SERVICE_SCORE_MAX, Integer.parseInt(qualityOfServiceMax));
} catch (Exception e) {
model.addAttribute(ModelConstants.QUALITY_OF_SERVICE_SCORE_MAX, 5);
}
// PRICE
String priceMax = "5";
if(engineSetting != null){
priceMax = engineSetting.getDefaultValue();
EngineSettingValue engineSettingValue = engineSetting.getEngineSettingValue(EngineSettingService.ENGINE_SETTING_CONTEXT_STAR_SCORE_MAX);
if(engineSettingValue != null){
priceMax = engineSettingValue.getValue();
}
}