Package org.hoteia.qalingo.core.domain

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


     */
    public List<AttributeDefinitionViewBean> buildListViewBeanAttributeDefinition(final RequestData requestData, final List<AttributeDefinition> attributeDefinitions) throws Exception {
        final List<AttributeDefinitionViewBean> attributeDefinitionViewBeans = new ArrayList<AttributeDefinitionViewBean>();
        if (attributeDefinitions != null) {
            for (Iterator<AttributeDefinition> iterator = attributeDefinitions.iterator(); iterator.hasNext();) {
                AttributeDefinition attributeDefinition = (AttributeDefinition) iterator.next();
                attributeDefinitionViewBeans.add(buildViewBeanAttributeDefinition(requestData, attributeDefinition));
            }
        }
        return attributeDefinitionViewBeans;
    }
View Full Code Here


  }

    private ProductBrandAttribute buildProductBrandAttribute(final MarketArea marketArea, final Localization localization, final String attributeKey, final String attributeValue, boolean isGlobal) {

        // TODO : denis : 20130125 : add cache
        AttributeDefinition attributeDefinition = attributeService.getAttributeDefinitionByCode(attributeKey);

        ProductBrandAttribute productBrandAttribute = new ProductBrandAttribute();
        productBrandAttribute.setAttributeDefinition(attributeDefinition);
        productBrandAttribute.setLocalizationCode(localization.getCode());
        productBrandAttribute.setMarketAreaId(marketArea.getId());
View Full Code Here

    }
    
  private CatalogCategoryMasterAttribute buildCatalogCategoryMasterAttribute(final MarketArea marketArea, final Localization localization, final String attributeKey, final String attributeValue, boolean isGlobal) {
   
    //TODO : denis : 20130125 : add cache
    AttributeDefinition attributeDefinition = attributeService.getAttributeDefinitionByCode(attributeKey);

    CatalogCategoryMasterAttribute catalogCategoryMasterAttribute = new CatalogCategoryMasterAttribute();
    catalogCategoryMasterAttribute.setAttributeDefinition(attributeDefinition);
    catalogCategoryMasterAttribute.setLocalizationCode(localization.getCode());
    catalogCategoryMasterAttribute.setMarketAreaId(marketArea.getId());
View Full Code Here

  }
 
  private CatalogCategoryVirtualAttribute buildCatalogCategoryVirtualAttribute(final MarketArea marketArea, final Localization localization, final String attributeKey, final String attributeValue, boolean isGlobal) {
   
    //TODO : denis : 20130125 : add cache
    AttributeDefinition attributeDefinition = attributeService.getAttributeDefinitionByCode(attributeKey);

    CatalogCategoryVirtualAttribute catalogCategoryVirtualAttribute = new CatalogCategoryVirtualAttribute();
    catalogCategoryVirtualAttribute.setAttributeDefinition(attributeDefinition);
    catalogCategoryVirtualAttribute.setLocalizationCode(localization.getCode());
//    catalogCategoryVirtualAttribute.setMarketAreaId(marketArea.getId());
View Full Code Here

            String key = (String) iterator.next();
            String value = paymentGatewayForm.getGlobalAttributeMap().get(key);
            boolean success = paymentGateway.updateAttribute(key, value);
            if(!success){
                // ATTRIBUTE DOESN'T EXIT - ADD
                AttributeDefinition attributeDefinition = attributeService.getAttributeDefinitionByCode(key);
                paymentGateway.addAttribute(null, attributeDefinition, value);
            }
        }
       
        for (Iterator<String> iterator = paymentGatewayForm.getMarketAreaAttributeMap().keySet().iterator(); iterator.hasNext();) {
            String key = (String) iterator.next();
            String value = paymentGatewayForm.getMarketAreaAttributeMap().get(key);
            boolean success = paymentGateway.updateAttribute(key, value);
            if(!success){
                // ATTRIBUTE DOESN'T EXIT - ADD
                AttributeDefinition attributeDefinition = attributeService.getAttributeDefinitionByCode(key);
                paymentGateway.addAttribute(marketArea, attributeDefinition, value);
            }
        }
       
        List<PaymentGatewayOption> availableOptions = paymentGatewayService.findPaymentGatewayOptions();
View Full Code Here

TOP

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

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.