|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StoreIf
This interface represents the interface StoreIf of the component InventoryApplication, as shown in the component diagram of figure xx.
Method Summary | |
---|---|
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. |
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. |
Method Detail |
---|
StoreWithEnterpriseTO getStore() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.List<ProductWithStockItemTO> getProductsWithLowStock() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.List<ProductWithSupplierTO> getAllProducts() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.List<ProductWithSupplierAndStockItemTO> getAllProductsWithOptionalStockItem() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.List<ComplexOrderTO> orderProducts(ComplexOrderTO complexOrder) throws java.rmi.RemoteException
complexOrder
- Initial order which contains all products to be ordered.
java.rmi.RemoteException
ComplexOrderTO getOrder(long orderId) throws java.rmi.RemoteException
orderId
- The id of the order.
java.rmi.RemoteException
void rollInReceivedOrder(ComplexOrderTO complexOrderTO) throws java.rmi.RemoteException
complexOrderTO
- Contains the order which is rolled in.
java.rmi.RemoteException
ProductWithStockItemTO changePrice(StockItemTO stockItemTO) throws java.rmi.RemoteException
stockItemTO
- Stock item with new price.
stockItemTO
.
java.rmi.RemoteException
void markProductsUnavailableInStock(ProductMovementTO requiredProductsAndAmount) throws java.rmi.RemoteException, ProductNotAvailableException
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
ComplexOrderEntryTO[] getStockItems(ProductTO[] requiredProductTOs) throws java.rmi.RemoteException
requiredProductTOs
- The products to look up in the stock
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |