Package org.hoteia.qalingo.core.domain

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


   
    /**
     *
     */
    public String getProductMarketingImageFilePath(String assetType) throws Exception {
        EngineSetting engineSetting = getSettingAssetProductMarketingFilePath();
        String prefixPath = "";
        if (engineSetting != null) {
            prefixPath = engineSetting.getDefaultValue();
        }
        String productMarketingImageFilePath = getRootAssetFilePath() + prefixPath + File.separator + assetType + File.separator;
        if (productMarketingImageFilePath.endsWith(File.separator)) {
            productMarketingImageFilePath = productMarketingImageFilePath.substring(0, productMarketingImageFilePath.length() - 1);
        }
View Full Code Here


   
    /**
     *
     */
    public String getProductMarketingImageWebPath(final Asset asset) throws Exception {
        EngineSetting engineSetting = getSettingAssetProductMarketingFilePath();
        String prefixPath = "";
        if (engineSetting != null) {
            prefixPath = engineSetting.getDefaultValue();
        }
        String productMarketingImageWebPath = getRootAssetWebPath() + prefixPath + "/" + asset.getType().toLowerCase() + "/" + asset.getPath();
        if (productMarketingImageWebPath.endsWith("/")) {
            productMarketingImageWebPath = productMarketingImageWebPath.substring(0, productMarketingImageWebPath.length() - 1);
        }
View Full Code Here

    /**
     *
     */
    public String getProductSkuImageFilePath(String assetType) throws Exception {
        EngineSetting engineSetting = getSettingAssetPoductSkuFilePath();
        String prefixPath = "";
        if (engineSetting != null) {
            prefixPath = engineSetting.getDefaultValue();
        }
        String productSkuImageFilePath = getRootAssetFilePath() + prefixPath + File.separator + assetType + File.separator;
        if (productSkuImageFilePath.endsWith(File.separator)) {
            productSkuImageFilePath = productSkuImageFilePath.substring(0, productSkuImageFilePath.length() - 1);
        }
View Full Code Here

   
    /**
     *
     */
    public String getProductSkuImageWebPath(final Asset asset) throws Exception {
        EngineSetting engineSetting = getSettingAssetPoductSkuFilePath();
        String prefixPath = "";
        if (engineSetting != null) {
            prefixPath = engineSetting.getDefaultValue();
        }
        String productSkuImageWebPath = getRootAssetWebPath() + prefixPath + "/" + asset.getType().toLowerCase() + "/" + asset.getPath();
        if (productSkuImageWebPath.endsWith("/")) {
            productSkuImageWebPath = productSkuImageWebPath.substring(0, productSkuImageWebPath.length() - 1);
        }
View Full Code Here

   
    /**
     *
     */
    public String getRetailerOrStoreImageFilePath(String assetType) throws Exception {
        EngineSetting engineSetting = getSettingAssetRetailerAndStoreFilePath();
        String prefixPath = "";
        if (engineSetting != null) {
            prefixPath = engineSetting.getDefaultValue();
        }
        String retailerImageFilePath = getRootAssetFilePath() + prefixPath + File.separator + assetType + File.separator;
        if (retailerImageFilePath.endsWith(File.separator)) {
            retailerImageFilePath = retailerImageFilePath.substring(0, retailerImageFilePath.length() - 1);
        }
View Full Code Here

   
    /**
     *
     */
    public String getRetailerOrStoreImageWebPath(final Asset asset) throws Exception {
        EngineSetting engineSetting = getSettingAssetRetailerAndStoreFilePath();
        String prefixPath = "";
        if (engineSetting != null) {
            prefixPath = engineSetting.getDefaultValue();
        }
        String retailerImageWebPath = getRootAssetWebPath() + prefixPath + "/" + asset.getScope().toLowerCase() + "/" + asset.getType().toLowerCase() + "/" + asset.getPath();
        if (retailerImageWebPath.endsWith("/")) {
            retailerImageWebPath = retailerImageWebPath.substring(0, retailerImageWebPath.length() - 1);
        }
View Full Code Here

     *
     */
    public List<EngineSettingViewBean> buildListViewBeanEngineSetting(final RequestData requestData, final List<EngineSetting> engineSettings) throws Exception {
        final List<EngineSettingViewBean> engineSettingViewBeans = new ArrayList<EngineSettingViewBean>();
        for (Iterator<EngineSetting> iterator = engineSettings.iterator(); iterator.hasNext();) {
            EngineSetting engineSetting = (EngineSetting) iterator.next();
            engineSettingViewBeans.add(buildViewBeanEngineSetting(requestData, engineSetting));
        }
        return engineSettingViewBeans;
    }
View Full Code Here

        return paymentGatewayService.saveOrUpdatePaymentGateway(paymentGateway);
    }

    public EngineSetting createOrUpdateEngineSetting(EngineSetting engineSetting, final EngineSettingForm engineSettingForm) {
        if (engineSetting == null) {
            engineSetting = new EngineSetting();
        }
        engineSetting.setDefaultValue(engineSettingForm.getDefaultValue());
        return engineSettingService.saveOrUpdateEngineSetting(engineSetting);
    }
View Full Code Here

                    } else if (param instanceof Customer) {
                        Customer customer = (Customer) param;
                        getParams.put(RequestConstants.REQUEST_PARAMETER_CUSTOMER_CODE, handleParamValue(customer.getCode().toString()));
                        break;
                    } else if (param instanceof EngineSetting) {
                        EngineSetting engineSetting = (EngineSetting) param;
                        getParams.put(RequestConstants.REQUEST_PARAMETER_ENGINE_SETTING_CODE, handleParamValue(engineSetting.getCode().toString()));
                        break;
                    } else if (param instanceof EngineSettingValue) {
                        EngineSettingValue engineSettingValue = (EngineSettingValue) param;
                        getParams.put(RequestConstants.REQUEST_PARAMETER_ENGINE_SETTING_CODE, handleParamValue(engineSettingValue.getEngineSetting().getCode().toString()));
                        getParams.put(RequestConstants.REQUEST_PARAMETER_ENGINE_SETTING_VALUE_CONTEXT, handleParamValue(engineSettingValue.getContext()));
View Full Code Here

   
    model.addAttribute(ModelConstants.URL_BACK, urlService.generateUrl(FoUrls.HOME, requestUtil.getRequestData(request)));
   
    // 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.