Modifier and Type | Class and Description |
---|---|
class |
ShoppingCart<U extends IGenericEcomUser>
Deprecated.
Earlier this specifically had List
Cart . |
Modifier and Type | Class and Description |
---|---|
class |
ServletCartService<P extends Product,S extends javax.servlet.http.HttpSession,U extends IGenericEcomUser>
Servlet implementation for
CartService
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}
|
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 |
UserFormTransformer<U extends IGenericEcomUser,UA extends UserAttribute>
A
Transformer that takes in a Map |
class |
UserToJson<U extends IGenericEcomUser>
Marshal
IGenericEcomUser to JSON
TODO: Add unit test case |
Modifier and Type | Class and Description |
---|---|
class |
EComUserShell<U extends IGenericEcomUser,E>
Any environment that needs a user context can use a
EComUserShell
Any instance specific to the shell will not be accessible to a parent or child. |
Modifier and Type | Field and Description |
---|---|
IGenericEcomUser |
OrderDaoImpl.ReportQuery.user |
Constructor and Description |
---|
ReportQuery(IGenericEcomUser user,
Date start,
Date end,
Set<String> tags,
Set<OrderStatus> statuss,
Set<Product> categories,
String order) |
Modifier and Type | Method and Description |
---|---|
IGenericEcomUser |
Order.getUser()
Orders may contain
Order.userContactDetails and hence for GuestUser s in particular, user maybe optional |
Modifier and Type | Method and Description |
---|---|
void |
Order.setUser(IGenericEcomUser user)
Orders may contain
Order.userContactDetails and hence for GuestUser s in particular, user maybe optional |
Modifier and Type | Method and Description |
---|---|
boolean |
OrderProcessHelper.allowReuseOfOrder(IGenericEcomUser user,
O order)
Ensure Order via param injection is valid and secure to re-use
|
<CONTEXT> CONTEXT |
OrderProcessHelper.deriveContext(IGenericEcomUser user,
org.apache.wicket.RequestCycle requestCycle)
Derive the Context from the session
Example : Other aspects maybe added to session; like couponCode etc in JSON.
|
<P extends Product> |
OrderProcessHelper.deriveOrder(Map<P,Number> productQuantityMap,
IGenericEcomUser user,
String currency,
Class<org.apache.wicket.Page> pageClass,
O existingOrderObject,
String orderId,
Map itemProperties,
boolean persist,
org.apache.commons.collections.Transformer transformer,
org.apache.wicket.RequestCycle requestCycle,
org.apache.wicket.Response response)
Derive an order object
THIS METHOD IS A HELPER, IT WILL NOT FILL ALL DETAILS LIKE PROMOTIONS, OrderItem specific additional properties etc. |
<P extends Product> |
OrderProcessHelper.deriveOrder(Map<P,Number> productQuantityMap,
IGenericEcomUser user,
String currency,
Class<org.apache.wicket.Page> pageClass,
O existingOrderObject,
String orderId,
Map itemProperties,
org.apache.wicket.RequestCycle requestCycle,
org.apache.wicket.Response response)
Derive a persistent created or create a persistent order
THIS METHOD IS A HELPER, IT WILL NOT FILL ALL DETAILS LIKE PROMOTIONS, OrderItem specific additional properties etc. |
Modifier and Type | Method and Description |
---|---|
String |
OrderViaEmail.generateEmailOrderForm(IGenericEcomUser user,
Map<P,Integer> productQuantityMap) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultLockStrategy<P extends Product,U extends IGenericEcomUser>
A default implementation for
LockStrategy
WARNING : This implementation is suited for a Single VM type installation, not for a multi-node architecture. |
class |
DefaultOrderStrategy<P extends Product,U extends IGenericEcomUser,O extends Order<I>,I extends OrderItem>
Allow amalgamation of other strategies to a List of Products that constitute an Order
and produce a Persistent Order
|
class |
DefaultPromotionStrategy<P extends Product,U extends IGenericEcomUser>
PromotionStrategy for this applicationThis default impl assumes a context of Object[0] = email, Object[1] = couponCode |
class |
DefaultSubOrderStrategy<P extends Product,U extends IGenericEcomUser,O extends SubOrder<O,I>,I extends OrderItem>
Extension to
DefaultOrderStrategy to support additional SubOrder specific common cases. |
interface |
OrderStrategy<P extends Product,U extends IGenericEcomUser,O extends Order<? extends I>,I extends OrderItem>
Strategy for Order |
Modifier and Type | Class and Description |
---|---|
class |
UserServiceImpl<U extends IGenericEcomUser,R extends ResetPassword.ResetPasswordResponse>
Extension of
UserServiceImpl for real website / ecom scenarios |
Modifier and Type | Class and Description |
---|---|
class |
StrategiesService<P extends Product,U extends IGenericEcomUser,CONTEXT>
THIS CLASS IS WICKET DEPENDENT AS IT INTERNALLY USES A WICKET
EComSession
Web Service Layer for accessing Strategies over a users Session (Guest or Logged in)
This can be used to compute things like Packaging costs, Tax, Shipping costs etc. |
Modifier and Type | Class and Description |
---|---|
class |
EcomUserDaoImpl<U extends IGenericEcomUser>
User related queries.
|
class |
RegisteredUserLoginDaoImpl<U extends IGenericEcomUser>
Ensures there is a Dao that adheres to
UserDao ; which can be used for Authorization, Login etc. |
Modifier and Type | Class and Description |
---|---|
class |
GenericEcomUser |
class |
GuestUser
Guest Users Only
|
class |
RegisteredUser<T extends RegisteredUser>
Registered Users Only
|
Modifier and Type | Method and Description |
---|---|
IGenericEcomUser |
IGenericEcomUser.setAddress(Address address) |
IGenericEcomUser |
GenericEcomUser.setAddress(Address address) |
Modifier and Type | Method and Description |
---|---|
static IGenericEcomUser |
Utils.getUserForLocalUse(String sessionUserId,
org.apache.wicket.protocol.http.WebRequest requst,
Class<? extends GenericEcomUser> userClass)
Guarantees a
IGenericEcomUser for the session; and clones the User object if its a RegisteredUser to ensure
the session user variable is not affected. |
static IGenericEcomUser |
Utils.initUserWithAddressTypes(IGenericEcomUser user,
List<String> addressTypes)
For a user preinitialize any Address fields to ensure the
Address types are not null |
Modifier and Type | Method and Description |
---|---|
static IGenericEcomUser |
Utils.initUserWithAddressTypes(IGenericEcomUser user,
List<String> addressTypes)
For a user preinitialize any Address fields to ensure the
Address types are not null |
static void |
Utils.transitionUser(IGenericEcomUser guest,
RegisteredUser ru)
|
Modifier and Type | Class and Description |
---|---|
class |
EComSession<U extends IGenericEcomUser>
E-Commerce
BasicSession |
Copyright © 2018. All rights reserved.