soa.sca.samples.candystore
Class StoreImpl

java.lang.Object
  extended by soa.sca.samples.candystore.StoreImpl
All Implemented Interfaces:
Store

public class StoreImpl
extends java.lang.Object
implements Store


Field Summary
 Catalog catalog
           
 Cart shoppingCart
           
 Total shoppingTotal
           
 
Constructor Summary
StoreImpl()
           
 
Method Summary
 java.lang.String add(java.lang.String itemName, int quantity)
           
 java.lang.String checkoutCart()
           
 void deleteCart()
           
 java.util.List<Entry<java.lang.String,Item>> getCartItems()
           
 java.util.List<Item> getCatalogItems()
           
 java.lang.String getTotal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

catalog

public Catalog catalog

shoppingCart

public Cart shoppingCart

shoppingTotal

public Total shoppingTotal
Constructor Detail

StoreImpl

public StoreImpl()
Method Detail

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()