org.cocome.tradingsystem.inventory.application.store
Class ProductMovementTO

java.lang.Object
  extended by org.cocome.tradingsystem.inventory.application.store.ProductMovementTO
All Implemented Interfaces:
java.io.Serializable

public class ProductMovementTO
extends java.lang.Object
implements java.io.Serializable

Structure to represent products moved from one store to another. Stores the delivering and target Store and a list of product amounts.

Required for UC 8

Author:
kelsaka
See Also:
Serialized Form

Constructor Summary
ProductMovementTO()
          Initializes an empty product list.
 
Method Summary
 StoreTO getDeliveringStore()
          The store that has to deliver the products.
 java.util.Collection<ProductAmountTO> getProducts()
          A list of product that have to be delivered by the store getDeliveringStore.
 StoreTO getTargetStore()
          The store that receives the products.
 void setDeliveringStore(StoreTO deliveringStore)
          The store that has to deliver the products.
 void setProducts(java.util.Collection<ProductAmountTO> products)
          A list of product that have to be delivered by the store getDeliveringStore.
 void setTargetStore(StoreTO targetStore)
          The store that receives the products.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductMovementTO

public ProductMovementTO()
Initializes an empty product list.

Method Detail

getProducts

public java.util.Collection<ProductAmountTO> getProducts()
A list of product that have to be delivered by the store getDeliveringStore.

Returns:

setProducts

public void setProducts(java.util.Collection<ProductAmountTO> products)
A list of product that have to be delivered by the store getDeliveringStore.

Parameters:
products - product list

getDeliveringStore

public StoreTO getDeliveringStore()
The store that has to deliver the products.

Returns:

setDeliveringStore

public void setDeliveringStore(StoreTO deliveringStore)
The store that has to deliver the products.

Parameters:
deliveringStore - Store Identifier

getTargetStore

public StoreTO getTargetStore()
The store that receives the products.

Returns:

setTargetStore

public void setTargetStore(StoreTO targetStore)
The store that receives the products.

Parameters:
targetStore - set the target store