Login  Register

Re: Users - what does this line say?

Posted by Vinay Agarwal on Mar 20, 2006; 3:52pm
URL: http://ofbiz.116.s1.nabble.com/Users-what-does-this-line-say-tp137989p137990.html

priceContext = UtilMisc.toMap("product", product, "currencyUomId", cart.getCurrency(),
            "autoUserLogin", autoUserLogin, "userLogin", userLogin);

This is just an easy way to create a java.util.Map. >From your IDE, you should be able to find the source code of this function.


    priceContext.put("webSiteId", webSiteId);
    priceContext.put("prodCatalogId", catalogId);
    priceContext.put("productStoreId", productStoreId);

These are just putting objects in the map. Read java.util.Map for details.


    priceMap = dispatcher.runSync("calculateProductPrice", priceContext);

This is calling the service "calculateProductPrice". You can find more details of this service from webtools – service reference. >From there, you can find out where this service is defined and then you can look at the source code.

 

Regards,

Vinay Agarwal



 


 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users