org.salespointframework.web.movestrategies
Class CSSStrategy
java.lang.Object
org.salespointframework.desktop.strategies.FormSheetStrategy
org.salespointframework.desktop.strategies.dataexchangeformsheet.MoveStrategy
org.salespointframework.desktop.strategies.dataexchangeformsheet.CSSStrategy
org.salespointframework.web.movestrategies.CSSStrategy
- All Implemented Interfaces:
- ProcessErrorCodes, MoveStrategy
public abstract class CSSStrategy
- extends CSSStrategy
- implements MoveStrategy
MoveStategy moving items from a Catalog
to a StoringStock
- Author:
- Lars Kreisz, Uwe Schmidt
Method Summary |
protected abstract StockItem |
createStockItem(CatalogItem ci)
|
protected StockItem |
createStockItem(SaleProcess p,
SalesPoint sp,
Catalog cSource,
StoringStock ssDest,
DataBasket db,
CatalogItem ci)
Create a fresh StockItem following the specifications given. |
boolean |
moveToDestination(java.lang.Object source,
java.lang.Object destination,
java.lang.String itemName,
DataBasket db,
int count)
moves the item with the given name from source to destination |
boolean |
moveToSource(java.lang.Object source,
java.lang.Object destination,
java.lang.String itemName,
DataBasket db,
int count)
moves the item with the given name from destination to source |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSSStrategy
public CSSStrategy()
moveToDestination
public boolean moveToDestination(java.lang.Object source,
java.lang.Object destination,
java.lang.String itemName,
DataBasket db,
int count)
- Description copied from interface:
MoveStrategy
- moves the item with the given name from source to destination
- Specified by:
moveToDestination
in interface MoveStrategy
- Parameters:
source
- source aggregatedestination
- destination aggregateitemName
- name of item that should be moveddb
- databasket used for movementcount
- number of items that should be moved
- Returns:
- false, if to many items should have been moved
moveToSource
public boolean moveToSource(java.lang.Object source,
java.lang.Object destination,
java.lang.String itemName,
DataBasket db,
int count)
- Description copied from interface:
MoveStrategy
- moves the item with the given name from destination to source
- Specified by:
moveToSource
in interface MoveStrategy
- Parameters:
source
- source aggregatedestination
- destination aggregateitemName
- name of item that should be moveddb
- databasket used for movementcount
- number of items that should be moved
- Returns:
- false, if to many items should have been moved
createStockItem
protected final StockItem createStockItem(SaleProcess p,
SalesPoint sp,
Catalog cSource,
StoringStock ssDest,
DataBasket db,
CatalogItem ci)
throws java.lang.InterruptedException
- Description copied from class:
CSSStrategy
- Create a fresh StockItem following the specifications given. You can assume that you are at a
Gate
.
- Specified by:
createStockItem
in class CSSStrategy
- Parameters:
p
- the process into which the sub-process wil be embedded.sp
- the SalesPoint, if any, at which the FormSheet is being displayed.cSource
- the source Catalog.ssDest
- the destination StoringStock.db
- the DataBasket relative to which to perform the operation.ci
- the CatalogItem that is selected in the source.
- Throws:
java.lang.InterruptedException
createStockItem
protected abstract StockItem createStockItem(CatalogItem ci)