org.salespointframework.web.movestrategies
Interface MoveStrategy

All Known Implementing Classes:
CCSStrategy, CCStrategy, CDBStrategy, CSCSStrategy, CSDBStrategy, CSSSStrategy, CSSStrategy, DBCSStrategy, DBCStrategy, DBSSStrategy, SSCSStrategy, SSDBStrategy, SSSSStrategy

public interface MoveStrategy

General Interface for Web-MoveStrategies

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
 

Method Detail

moveToDestination

boolean moveToDestination(java.lang.Object source,
                          java.lang.Object destination,
                          java.lang.String itemName,
                          DataBasket db,
                          int count)
                          throws java.lang.ClassCastException
moves the item with the given name from source to destination

Parameters:
source - source aggregate
destination - destination aggregate
itemName - name of item that should be moved
db - databasket used for movement
count - number of items that should be moved
Returns:
false, if to many items should have been moved
Throws:
java.lang.ClassCastException

moveToSource

boolean moveToSource(java.lang.Object source,
                     java.lang.Object destination,
                     java.lang.String itemName,
                     DataBasket db,
                     int count)
                     throws java.lang.ClassCastException
moves the item with the given name from destination to source

Parameters:
source - source aggregate
destination - destination aggregate
itemName - name of item that should be moved
db - databasket used for movement
count - number of items that should be moved
Returns:
false, if to many items should have been moved
Throws:
java.lang.ClassCastException