public class DefaultPaymentCartService extends java.lang.Object implements PaymentCartService
PaymentCartService
.
Provides basic cart operations logic invoked along with payment.
Constructor and Description |
---|
DefaultPaymentCartService() |
Modifier and Type | Method and Description |
---|---|
void |
executeWithCartLock(CartModel cart,
java.lang.Runnable body)
Obtains the lock on given cart model and executes specified body in transaction.
|
CartModel |
getCartForGuid(java.lang.String guid)
Locate a cart for the specified cart guid.
|
public CartModel getCartForGuid(java.lang.String guid)
PaymentCartService
getCartForGuid
in interface PaymentCartService
guid
- the guid of the cartpublic void executeWithCartLock(CartModel cart, java.lang.Runnable body)
PaymentCartService
executeWithCartLock
in interface PaymentCartService
cart
- the cart to be lockedbody
- the logic to be executed