com.elasticpath.sfweb.ajax.util
Interface OnePageHelper

All Known Implementing Classes:
OnePageHelperImpl

public interface OnePageHelper

Common helper methods for single screen checkout ajax controllers.


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.
 

Method Detail

getCartItems

java.util.List getCartItems(ShoppingCart shoppingCart)
Method for retreiving convenience-wrapped shopping cart items through dwr.

Parameters:
shoppingCart - the shopping cart containing the cart items to wrap.
Returns:
a list of cart items wrapped in CartItemBean objects.

getOrderSummary

java.lang.String getOrderSummary(ShoppingCart shoppingCart)
Generates the order summary html for the given shopping cart.

Parameters:
shoppingCart - the current shopping cart
Returns:
the html code for the updated order summary

setDefaultBeanValidator

void setDefaultBeanValidator(org.springmodules.commons.validator.DefaultBeanValidator defaultBeanValidator)
Set the validator.

Parameters:
defaultBeanValidator - the validator

setElasticPath

void setElasticPath(ElasticPath elasticPath)
Parameters:
elasticPath - the elasticPath to set

setVelocityEngine

void setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine)
Parameters:
velocityEngine - the velocityEngine to set

validate

void validate(java.lang.Object object,
              java.util.Locale locale)
Validate an object recieved through dwr.

Parameters:
object - the domain or bean object to be validated
locale - the current locale

wrapShippingServiceLevels

void wrapShippingServiceLevels(ShoppingCart shoppingCart)
Method for wrapping the ShippingServiceLevel objects in the ShoppingCart for easy conversion through dwr.

Parameters:
shoppingCart - the shopping cart containing the shipping service levels to wrap.