Interface BasketOrderConsistency
-
public interface BasketOrderConsistencyEnsures consistency basket<->order- Version:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanassureConsistentData(Basket basket)Synchronises basket from order if necessary.booleanisBasketLinkedToOrder(Basket basket)Is basket linked to order? Only true for external basketsbooleanisUpdateMissing()Checks whether all pending updates in the basket have been sent to the Backend Object.voidsetBasketUpdateMissing()Sets an internal flag to indicate that an update call is missing.voidsetOrder(Order order)Sets the order BO.voidsetSyncFromOrderNeeded(boolean aIsSyncFromOrderNeeded)Sets an internal flag to indicate that the synchronisation from the order is needed
-
-
-
Method Detail
-
setOrder
void setOrder(Order order)
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
boolean isBasketLinkedToOrder(Basket basket)
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
boolean assureConsistentData(Basket basket)
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
-
-