Interface BasketOrderConsistency
public interface BasketOrderConsistency
Ensures consistency basket<->order
- Version:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanassureConsistentData(Basket basket) Synchronises basket from order if necessary.booleanisBasketLinkedToOrder(Basket basket) Is basket linked to order? Only true for external basketsbooleanChecks whether all pending updates in the basket have been sent to the Backend Object.voidSets an internal flag to indicate that an update call is missing.voidSets the order BO.voidsetSyncFromOrderNeeded(boolean aIsSyncFromOrderNeeded) Sets an internal flag to indicate that the synchronisation from the order is needed
-
Method Details
-
setOrder
Sets the order BO. Needed for telling whether basket and order are linked, and for updating basket from order- Parameters:
order- order the basket is linked to
-
isBasketLinkedToOrder
Is basket linked to order? Only true for external baskets- Parameters:
basket- the basket to be checked- Returns:
- true if basket and order are linked
-
setSyncFromOrderNeeded
void setSyncFromOrderNeeded(boolean aIsSyncFromOrderNeeded) Sets an internal flag to indicate that the synchronisation from the order is needed- Parameters:
aIsSyncFromOrderNeeded- to or no to synchronise
-
setBasketUpdateMissing
void setBasketUpdateMissing()Sets an internal flag to indicate that an update call is missing. -
assureConsistentData
Synchronises basket from order if necessary.- Parameters:
basket- the basket to be checked- Returns:
- true if the data was not consistent and a basket update is necessary
-
isUpdateMissing
boolean isUpdateMissing()Checks whether all pending updates in the basket have been sent to the Backend Object.- Returns:
true, only if an update is missing
-