org.salespointframework.web.movestrategies
Class CCStrategy

java.lang.Object
  extended by org.salespointframework.desktop.strategies.FormSheetStrategy
      extended by org.salespointframework.desktop.strategies.dataexchangeformsheet.MoveStrategy
          extended by org.salespointframework.desktop.strategies.dataexchangeformsheet.CCStrategy
              extended by org.salespointframework.web.movestrategies.CCStrategy
All Implemented Interfaces:
ProcessErrorCodes, MoveStrategy

public class CCStrategy
extends CCStrategy
implements MoveStrategy

MoveStategy moving items from a Catalog to a Catalog

Author:
Lars Kreisz, Uwe Schmidt

Nested Class Summary
 
Nested classes/interfaces inherited from class org.salespointframework.desktop.strategies.FormSheetStrategy
FormSheetStrategy.ErrorHandler
 
Field Summary
 
Fields inherited from class org.salespointframework.desktop.strategies.FormSheetStrategy
DEFAULT_ERROR_HANDLER, m_ehErrHandler, MSG_POPUP_ERROR_HANDLER
 
Fields inherited from interface org.salespointframework.core.exceptions.ProcessErrorCodes
DATABASKET_CONFLICT_ERROR, DUPLICATE_KEY_EXCEPTION, ERR_FORCED_SHUTDOWN, ERR_INTERNAL, ERR_LOWERBOUND, ERR_NOERROR, ERR_UPPERBOUND, NOT_ENOUGH_ELEMENTS_ERROR, REMOVE_VETO_EXCEPTION
 
Constructor Summary
CCStrategy()
           
 
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 org.salespointframework.desktop.strategies.dataexchangeformsheet.CCStrategy
checkMove, getCheckMoveGate, getCheckMoveToDestGate, getCheckMoveToSourceGate, getMoveToDestProcess, getMoveToSourceProcess, moveImpl
 
Methods inherited from class org.salespointframework.desktop.strategies.dataexchangeformsheet.MoveStrategy
canMoveToDest, canMoveToSource
 
Methods inherited from class org.salespointframework.desktop.strategies.FormSheetStrategy
error, setErrorHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CCStrategy

public CCStrategy()
Method Detail

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 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

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 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