org.cocome.tradingsystem.inventory.application.store
Interface CashDeskConnectorIf

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
StoreImpl

public interface CashDeskConnectorIf
extends java.rmi.Remote

This interface is used by the cashdesk

Author:
Yannick Welsch

Method Summary
 void bookSale(SaleTO saleTO)
          Registers the selling of products contained in the stock of the store.
 ProductWithStockItemTO getProductWithStockItem(long productBarCode)
          Determines product and the item in the stock of the store by the given barcode.
 

Method Detail

bookSale

void bookSale(SaleTO saleTO)
              throws java.rmi.RemoteException
Registers the selling of products contained in the stock of the store. Updates amount of stock items. Used for realization of UC 1.

Parameters:
saleTO - The sale to be registered in stock.
Throws:
java.rmi.RemoteException

getProductWithStockItem

ProductWithStockItemTO getProductWithStockItem(long productBarCode)
                                               throws NoSuchProductException,
                                                      java.rmi.RemoteException
Determines product and the item in the stock of the store by the given barcode. Used for realization of UC 1 and UC 4

Parameters:
productBarCode - Contains the given barcode
Returns:
Returns a ProductWithStockItemTO instance which contains the identified product which is linked to the stock item of the store. NULL, if barcode cannot be matched.
Throws:
NoSuchProductException
java.rmi.RemoteException