|
SalesPoint Framework v3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sale.stdforms.FormSheetStrategy data.stdforms.twotableformsheet.MoveStrategy data.stdforms.twotableformsheet.CCStrategy
MoveStrategy for a Catalog source and destination.
Nested Class Summary |
Nested classes inherited from class sale.stdforms.FormSheetStrategy |
FormSheetStrategy.ErrorHandler |
Field Summary |
Fields inherited from class sale.stdforms.FormSheetStrategy |
DEFAULT_ERROR_HANDLER, m_ehErrHandler, MSG_POPUP_ERROR_HANDLER |
Fields inherited from interface sale.ProcessErrorCodes |
DATABASKET_CONFLICT_ERROR, DUPLICATE_KEY_EXCEPTION, ERR_INTERNAL, ERR_LOWERBOUND, ERR_NOERROR, ERR_UPPERBOUND, NOT_ENOUGH_ELEMENTS_ERROR, REMOVE_VETO_EXCEPTION |
Constructor Summary | |
CCStrategy()
|
Method Summary | |
protected int |
checkMove(SaleProcess p,
SalesPoint sp,
Catalog cSource,
Catalog cDest,
DataBasket db,
CatalogItem ci)
Check whether the indicated move is allowable. |
protected Gate |
getCheckMoveGate(SaleProcess p,
SalesPoint sp,
Catalog cSource,
Catalog cDest,
DataBasket db,
CatalogItem ci,
TwoTableFormSheet ttfs)
Get the first gate of a sub-process that will move items from one Catalog into another. |
protected Gate |
getCheckMoveToDestGate(SaleProcess p,
SalesPoint sp,
Catalog cSource,
Catalog cDest,
DataBasket db,
CatalogItem ci,
TwoTableFormSheet ttfs)
Get the first gate of the sub-process that will move items from the source to the destination. |
protected Gate |
getCheckMoveToSourceGate(SaleProcess p,
SalesPoint sp,
Catalog cSource,
Catalog cDest,
DataBasket db,
CatalogItem ci,
TwoTableFormSheet ttfs)
Get the first gate of the sub-process that will move items from the destination to the source. |
Transition |
getMoveToDestProcess(SaleProcess p,
SalesPoint sp,
Catalog cSource,
Catalog cDest,
DataBasket db,
CatalogItem ci,
TwoTableFormSheet ttfs)
Get the sub-process that will move items from the source to the destination. |
Transition |
getMoveToSourceProcess(SaleProcess p,
SalesPoint sp,
Catalog cSource,
Catalog cDest,
DataBasket db,
CatalogItem ci,
TwoTableFormSheet ttfs)
Get the sub-process that will move items from the destination to the source. |
protected void |
moveImpl(SaleProcess p,
SalesPoint sp,
Catalog cSource,
Catalog cDest,
DataBasket db,
CatalogItem ci)
Move the indicated item from the source Catalog into the destination Catalog. |
Methods inherited from class data.stdforms.twotableformsheet.MoveStrategy |
canMoveToDest, canMoveToSource |
Methods inherited from class sale.stdforms.FormSheetStrategy |
error, setErrorHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CCStrategy()
Method Detail |
public Transition getMoveToDestProcess(SaleProcess p, SalesPoint sp, Catalog cSource, Catalog cDest, DataBasket db, CatalogItem ci, TwoTableFormSheet ttfs)
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.cDest
- the destination Catalog.db
- the DataBasket relative to which to perform the operation.ci
- the CatalogItem that is selected in the source.ttfs
- the FormSheet that triggers the process.protected Gate getCheckMoveToDestGate(SaleProcess p, SalesPoint sp, Catalog cSource, Catalog cDest, DataBasket db, CatalogItem ci, TwoTableFormSheet ttfs)
This Gate will check whether the move is allowable, and if so, will trigger a Transition that performs it.
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.cDest
- the destination Catalog.db
- the DataBasket relative to which to perform the operation.ci
- the CatalogItem that is selected in the source.ttfs
- the FormSheet that triggers the process.
getCheckMoveGate(sale.SaleProcess, sale.SalesPoint, data.Catalog, data.Catalog, data.DataBasket, data.CatalogItem, data.stdforms.TwoTableFormSheet)
.checkMove(sale.SaleProcess, sale.SalesPoint, data.Catalog, data.Catalog, data.DataBasket, data.CatalogItem)
and/or moveImpl(sale.SaleProcess, sale.SalesPoint, data.Catalog, data.Catalog, data.DataBasket, data.CatalogItem)
.public Transition getMoveToSourceProcess(SaleProcess p, SalesPoint sp, Catalog cSource, Catalog cDest, DataBasket db, CatalogItem ci, TwoTableFormSheet ttfs)
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.cDest
- the destination Catalog.db
- the DataBasket relative to which to perform the operation.ci
- the CatalogItem that is selected in the destination.ttfs
- the FormSheet that triggers the process.protected Gate getCheckMoveToSourceGate(SaleProcess p, SalesPoint sp, Catalog cSource, Catalog cDest, DataBasket db, CatalogItem ci, TwoTableFormSheet ttfs)
This Gate will check whether the move is allowable, and if so, will trigger a Transition that performs it.
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.cDest
- the destination Catalog.db
- the DataBasket relative to which to perform the operation.ci
- the CatalogItem that is selected in the destination.ttfs
- the FormSheet that triggers the process.
getCheckMoveGate(sale.SaleProcess, sale.SalesPoint, data.Catalog, data.Catalog, data.DataBasket, data.CatalogItem, data.stdforms.TwoTableFormSheet)
.checkMove(sale.SaleProcess, sale.SalesPoint, data.Catalog, data.Catalog, data.DataBasket, data.CatalogItem)
and/or moveImpl(sale.SaleProcess, sale.SalesPoint, data.Catalog, data.Catalog, data.DataBasket, data.CatalogItem)
.protected Gate getCheckMoveGate(SaleProcess p, SalesPoint sp, Catalog cSource, Catalog cDest, DataBasket db, CatalogItem ci, TwoTableFormSheet ttfs)
This Gate will check whether the move is allowable, and if so, will trigger a Transition that performs it.
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.cDest
- the destination Catalog.db
- the DataBasket relative to which to perform the operation.ci
- the CatalogItem that is to be moved from the source into the destination Catalog.ttfs
- the FormSheet that triggers the process.checkMove(sale.SaleProcess, sale.SalesPoint, data.Catalog, data.Catalog, data.DataBasket, data.CatalogItem)
and/or moveImpl(sale.SaleProcess, sale.SalesPoint, data.Catalog, data.Catalog, data.DataBasket, data.CatalogItem)
.protected void moveImpl(SaleProcess p, SalesPoint sp, Catalog cSource, Catalog cDest, DataBasket db, CatalogItem ci)
Transition
.
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.cDest
- the destination Catalog.db
- the DataBasket relative to which to perform the operation.ci
- the CatalogItem that is to be moved.protected int checkMove(SaleProcess p, SalesPoint sp, Catalog cSource, Catalog cDest, DataBasket db, CatalogItem ci) throws InterruptedException
FormSheetStrategy.error(sale.SaleProcess, int)
. You can assume that you are at a Gate
.
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.cDest
- the destination Catalog.db
- the DataBasket relative to which to perform the operation.ci
- the CatalogItem that is to be moved.
InterruptedException
|
SalesPoint Framework v3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |