soa.sca.samples.candystore
Class StoreImpl
java.lang.Object
soa.sca.samples.candystore.StoreImpl
- All Implemented Interfaces:
- Store
public class StoreImpl
- extends java.lang.Object
- implements Store
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
StoreImpl
public StoreImpl()
add
public java.lang.String add(java.lang.String itemName,
int quantity)
- Specified by:
add
in interface Store
checkoutCart
public java.lang.String checkoutCart()
- Specified by:
checkoutCart
in interface Store
deleteCart
public void deleteCart()
throws NotFoundException
- Specified by:
deleteCart
in interface Store
- Throws:
NotFoundException
getCartItems
public java.util.List<Entry<java.lang.String,Item>> getCartItems()
- Specified by:
getCartItems
in interface Store
getCatalogItems
public java.util.List<Item> getCatalogItems()
- Specified by:
getCatalogItems
in interface Store
getTotal
public java.lang.String getTotal()