soa.sca.samples.candystore
Class StoreServiceImpl
java.lang.Object
soa.sca.samples.candystore.StoreServiceImpl
- All Implemented Interfaces:
- StoreService
public class StoreServiceImpl
- extends java.lang.Object
- implements StoreService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
catalog
public Catalog catalog
shoppingCart
public Cart shoppingCart
shoppingTotal
public Total shoppingTotal
StoreServiceImpl
public StoreServiceImpl()
add
public java.lang.String add(java.lang.String itemName,
int quantity)
- Specified by:
add
in interface StoreService
- Returns:
- returns java.lang.String
checkoutCart
public java.lang.String checkoutCart()
- Specified by:
checkoutCart
in interface StoreService
- Returns:
- returns java.lang.String
deleteCart
public void deleteCart()
throws NotFoundException
- Specified by:
deleteCart
in interface StoreService
- Throws:
NotFoundException
getCartProducts
public java.util.List<Record> getCartProducts()
- Specified by:
getCartProducts
in interface StoreService
- Returns:
- returns java.util.List
getCatalogProducts
public java.util.List<Product> getCatalogProducts()
- Specified by:
getCatalogProducts
in interface StoreService
- Returns:
- returns java.util.List
getTotal
public java.lang.String getTotal()
- Specified by:
getTotal
in interface StoreService
- Returns:
- returns java.lang.String