Package org.hoteia.qalingo.core.domain

Examples of org.hoteia.qalingo.core.domain.EngineSetting


    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();
      }
    }
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.domain.EngineSetting

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.