soa.sca.samples.candystore
Class StoreServiceImpl

java.lang.Object
  extended by soa.sca.samples.candystore.StoreServiceImpl
All Implemented Interfaces:
StoreService

public class StoreServiceImpl
extends java.lang.Object
implements StoreService


Field Summary
 Catalog catalog
           
 Cart shoppingCart
           
 Total shoppingTotal
           
 
Constructor Summary
StoreServiceImpl()
           
 
Method Summary
 java.lang.String add(java.lang.String itemName, int quantity)
           
 java.lang.String checkoutCart()
           
 void deleteCart()
           
 java.util.List<Record> getCartProducts()
           
 java.util.List<Product> getCatalogProducts()
           
 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

StoreServiceImpl

public StoreServiceImpl()
Method Detail

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