Package org.javlo.ecom
Class BasketPersistenceService
- java.lang.Object
-
- org.javlo.ecom.BasketPersistenceService
-
public class BasketPersistenceService extends Object
-
-
Constructor Summary
Constructors Constructor Description BasketPersistenceService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Basket>
getAllBaskets()
Basket
getBasket(String id)
Basket
getBasketByPaymentIndent(String paymentIndent)
static File
getFolder(GlobalContext globalContext)
static BasketPersistenceService
getInstance(GlobalContext globalContext)
void
storeBasket(Basket basket)
-
-
-
Method Detail
-
getInstance
public static BasketPersistenceService getInstance(GlobalContext globalContext)
-
getFolder
public static File getFolder(GlobalContext globalContext)
-
getAllBaskets
public Collection<Basket> getAllBaskets()
-
storeBasket
public void storeBasket(Basket basket) throws IOException
- Throws:
IOException
-
getBasket
public Basket getBasket(String id) throws IOException
- Throws:
IOException
-
-