Modifier and Type | Class and Description |
---|---|
class |
WicketCartService<P extends Product,S extends EComSession<U>,U extends IGenericEcomUser>
Default implementation for
CartService uses EComSession (needs Apache Wicket)
Since this implements ChangeGenerator ; it will also generate Events of TypeOn Any change - Object[]{String cartType, Cart , sessionId as String, (optional) CartService method name}
On Any operation UPDATE/INSERT/REMOVE - Object[]{String cartType, Cart existingCart, Cart cartForOperation, sessionId as String, String operationName}
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractCartForm<S extends EComSession>
Represents the
Cart Data being Submitted
In the corresponding resource properties file, define the following: error.user.invalid error.cart.invalid success A Cart form is defined by: cartUserId - Should match whats in session or SessionId for non logged in User cartSessionId - Should match session id. |
Modifier and Type | Method and Description |
---|---|
protected PartialTransactionException |
StrategiesService._strategiesCalcData(Map<P,Number> productQtyMap,
List<CartItem> cartItems,
U user,
String currency,
List<PromotionForUser> promotions,
Amount subTotal,
Number totalQuantity,
Collection<String> paramNames,
EComSession session,
CONTEXT context,
PartialTransactionException pte)
Can override if there are any App specific Strategies not handled by this default service
|
protected CONTEXT |
StrategiesService.deriveContext(U user,
EComSession session,
String contextStr)
Derive Context - Give pref to param, if not provided then rely on Session.
Context Derivation Algo: If contextProviderStrategy exists then pass raw contextStr to it and derive CONTEXT object(s) and will also update the ContextualSession.setPartialContext(Object) . |
protected void |
StrategiesService.logValidationError(String strategyName,
Amount subTotal,
List<CartItem> cartItems,
U user,
String currency,
Collection<String> paramNames,
EComSession session,
String contextStr,
Throwable e) |
Map |
StrategiesService.strategiesCalcData(List<CartItem> cartItems,
U user,
String currency,
String toCurrency,
Collection<String> paramNames,
EComSession session,
String contextStr) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractUserLoginForm<S extends EComSession,R extends RegisteredUser<?>>
Generic User Login Form
|
Modifier and Type | Method and Description |
---|---|
static EComSession |
EComSession.get() |
Copyright © 2018. All rights reserved.