|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.cocome.tradingsystem.inventory.application.store.impl.StoreImpl
public class StoreImpl
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
StoreImpl(long storeid)
|
Method Summary | |
---|---|
void |
bookSale(SaleTO saleTO)
Registers the selling of products contained in the stock of the store. |
ProductWithStockItemTO |
changePrice(StockItemTO stockItemTO)
Updates sales price of a stock item. |
java.util.List<ProductWithSupplierTO> |
getAllProducts()
Determines all products of the portfolio of a given store and the supplier for each of them. |
java.util.List<ProductWithSupplierAndStockItemTO> |
getAllProductsWithOptionalStockItem()
Determines all products of the portfolio of a given store and the supplier for each of them. |
ComplexOrderTO |
getOrder(long orderId)
Returns order information for a given order id. |
java.util.List<ProductWithStockItemTO> |
getProductsWithLowStock()
Determines products and stock items which are nearly out of stock, meaning amount is lower than 10% of maximal stock. |
ProductWithStockItemTO |
getProductWithStockItem(long productBarCode)
Determines product and the item in the stock of the store by the given barcode. |
ComplexOrderEntryTO[] |
getStockItems(ProductTO[] requiredProductTOs)
|
StoreWithEnterpriseTO |
getStore()
Gets transfer object with information of the store in which the component is running. |
void |
markProductsUnavailableInStock(ProductMovementTO requiredProductsAndAmount)
|
java.util.List<ComplexOrderTO> |
orderProducts(ComplexOrderTO complexOrder)
Creates a list of orders for different suppliers for an initial list of products to be ordered by a store. |
void |
rollInReceivedOrder(ComplexOrderTO complexOrderTO)
Updates stocks after order delivery. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StoreImpl(long storeid) throws java.rmi.RemoteException
java.rmi.RemoteException
Method Detail |
---|
public ProductWithStockItemTO changePrice(StockItemTO stockItemTO)
StoreIf
changePrice
in interface StoreIf
stockItemTO
- Stock item with new price.
stockItemTO
.public java.util.List<ProductWithSupplierTO> getAllProducts()
StoreIf
getAllProducts
in interface StoreIf
public java.util.List<ProductWithSupplierAndStockItemTO> getAllProductsWithOptionalStockItem()
StoreIf
getAllProductsWithOptionalStockItem
in interface StoreIf
public ComplexOrderTO getOrder(long orderId)
StoreIf
getOrder
in interface StoreIf
orderId
- The id of the order.
public java.util.List<ProductWithStockItemTO> getProductsWithLowStock()
StoreIf
getProductsWithLowStock
in interface StoreIf
public StoreWithEnterpriseTO getStore()
StoreIf
getStore
in interface StoreIf
public java.util.List<ComplexOrderTO> orderProducts(ComplexOrderTO complexOrder)
StoreIf
orderProducts
in interface StoreIf
complexOrder
- Initial order which contains all products to be ordered.
public void rollInReceivedOrder(ComplexOrderTO complexOrderTO)
StoreIf
rollInReceivedOrder
in interface StoreIf
complexOrderTO
- Contains the order which is rolled in.public void bookSale(SaleTO saleTO)
CashDeskConnectorIf
bookSale
in interface CashDeskConnectorIf
saleTO
- The sale to be registered in stock.public ProductWithStockItemTO getProductWithStockItem(long productBarCode) throws NoSuchProductException
CashDeskConnectorIf
getProductWithStockItem
in interface CashDeskConnectorIf
productBarCode
- Contains the given barcode
NoSuchProductException
public ComplexOrderEntryTO[] getStockItems(ProductTO[] requiredProductTOs)
getStockItems
in interface StoreIf
requiredProductTOs
- The products to look up in the stock
public void markProductsUnavailableInStock(ProductMovementTO requiredProductsAndAmount) throws java.rmi.RemoteException, ProductNotAvailableException
markProductsUnavailableInStock
in interface StoreIf
requiredProductsAndAmount
- The product required at another store; includes
the amount of required products.
ProductNotAvailableException
- Thrown if the local stock of the
required product is less than the required amount.
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |