Package org.javlo.ecom
Class EcomService
- java.lang.Object
-
- org.javlo.ecom.EcomService
-
public class EcomService extends Object
-
-
Constructor Summary
Constructors Constructor Description EcomService()
-
Method Summary
-
-
-
Method Detail
-
getInstance
public static EcomService getInstance(GlobalContext globalContext, javax.servlet.http.HttpSession session)
-
storeBasket
public void storeBasket(Basket basket)
-
getExternalService
public List<PayementExternalService> getExternalService()
return the external service (as paypal, Ogone...) for pay on the site.- Returns:
-
getExternalService
public PayementExternalService getExternalService(String name)
-
getProducts
public List<Product.ProductBean> getProducts(ContentContext ctx) throws Exception
- Throws:
Exception
-
getProductsAllLanguages
public List<Product.ProductBean> getProductsAllLanguages(ContentContext ctx) throws Exception
- Throws:
Exception
-
getProducts
public Product.ProductBean getProducts(ContentContext ctx, String id) throws Exception
- Throws:
Exception
-
getActiveProducts
public List<Product.ProductBean> getActiveProducts(ContentContext ctx) throws Exception
- Throws:
Exception
-
getProductsOnPage
public Product.ProductBean getProductsOnPage(ContentContext ctx, String pageId) throws Exception
- Throws:
Exception
-
storePayementService
public void storePayementService(PayementExternalService service)
-
deletePayementService
public void deletePayementService(String name)
-
getDefaultDelivery
public double getDefaultDelivery()
-
setDefaultDelivery
public void setDefaultDelivery(Double price)
-
getInfoFromIban
public static IbanInfo getInfoFromIban(String iban) throws MalformedURLException, Exception
extract bic code from online service openiban.com- Parameters:
ibam
-- Returns:
- null if invalid iban
- Throws:
Exception
MalformedURLException
-
-