|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.sfweb.ajax.util.impl.OnePageHelperImpl
public class OnePageHelperImpl
Default implementation of OnePageHelper
.
Constructor Summary | |
---|---|
OnePageHelperImpl()
|
Method Summary | |
---|---|
java.util.List |
getCartItems(ShoppingCart shoppingCart)
Method for retreiving convenience-wrapped shopping cart items through dwr. |
java.lang.String |
getOrderSummary(ShoppingCart shoppingCart)
Generates the order summary html for the given shopping cart. |
void |
setDefaultBeanValidator(org.springmodules.commons.validator.DefaultBeanValidator defaultBeanValidator)
Set the validator. |
void |
setElasticPath(ElasticPath elasticPath)
|
void |
setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine)
|
void |
validate(java.lang.Object object,
java.util.Locale locale)
Validate an object recieved through dwr. |
void |
wrapShippingServiceLevels(ShoppingCart shoppingCart)
Method for wrapping the ShippingServiceLevel objects in the ShoppingCart for easy conversion through dwr. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OnePageHelperImpl()
Method Detail |
---|
public java.util.List getCartItems(ShoppingCart shoppingCart)
getCartItems
in interface OnePageHelper
shoppingCart
- the shopping cart containing the cart items to wrap.
CartItemBean
objects.public java.lang.String getOrderSummary(ShoppingCart shoppingCart)
getOrderSummary
in interface OnePageHelper
shoppingCart
- the current shopping cart
public void setDefaultBeanValidator(org.springmodules.commons.validator.DefaultBeanValidator defaultBeanValidator)
setDefaultBeanValidator
in interface OnePageHelper
defaultBeanValidator
- the validatorpublic void setElasticPath(ElasticPath elasticPath)
setElasticPath
in interface OnePageHelper
elasticPath
- the elasticPath to setpublic void setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine)
setVelocityEngine
in interface OnePageHelper
velocityEngine
- the velocityEngine to setpublic void validate(java.lang.Object object, java.util.Locale locale) throws EpDomainException
validate
in interface OnePageHelper
object
- the domain or bean object to be validatedlocale
- the current locale
EpDomainException
- if defaultBeanValidator can not be foundpublic void wrapShippingServiceLevels(ShoppingCart shoppingCart)
ShippingServiceLevel
objects in the ShoppingCart
for easy conversion through dwr.
wrapShippingServiceLevels
in interface OnePageHelper
shoppingCart
- the shopping cart containing the shipping service levels to wrap.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |