org.salespointframework.web.movestrategies
Class CCSStrategy
java.lang.Object
org.salespointframework.desktop.strategies.FormSheetStrategy
org.salespointframework.desktop.strategies.dataexchangeformsheet.MoveStrategy
org.salespointframework.desktop.strategies.dataexchangeformsheet.CCSStrategy
org.salespointframework.web.movestrategies.CCSStrategy
- All Implemented Interfaces:
- ProcessErrorCodes, MoveStrategy
public class CCSStrategy
- extends CCSStrategy
- implements MoveStrategy
MoveStategy moving items from a Catalog
to a CountingStock
- Author:
- Lars Kreisz, Uwe Schmidt
Method Summary |
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 |
CCSStrategy
public CCSStrategy()
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