Users - what does this line say?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Users - what does this line say?

puranisank

I need help in knowing the following line.
priceContext = UtilMisc.toMap("product", product, "currencyUomId", cart.getCurrency(),
            "autoUserLogin", autoUserLogin, "userLogin", userLogin);
    priceContext.put("webSiteId", webSiteId);
    priceContext.put("prodCatalogId", catalogId);
    priceContext.put("productStoreId", productStoreId);
    priceMap = dispatcher.runSync("calculateProductPrice", priceContext);

Purani




 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - what does this line say?

Jacopo Cappellato
It is a service call.
For more information:

http://www.ofbiz.org/docs/services.html

Jacopo

Purani S wrote:

> I need help in knowing the following line.
> priceContext = UtilMisc.toMap("product", product, "currencyUomId",
> cart.getCurrency(),
>             "autoUserLogin", autoUserLogin, "userLogin", userLogin);
>     priceContext.put("webSiteId", webSiteId);
>     priceContext.put("prodCatalogId", catalogId);
>     priceContext.put("productStoreId", productStoreId);
>     priceMap = dispatcher.runSync("calculateProductPrice", priceContext);
>
> Purani
>
>
>
> <http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3>
>
>
>
> ------------------------------------------------------------------------
>
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - what does this line say?

Vinay Agarwal
In reply to this post by puranisank

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