com.bea.alcs.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<CartItem> 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.
 java.util.List<ShippingServiceLevel> getShippingServiceLevels(ShoppingCart shoppingCart)
          Method for wrapping the ShippingServiceLevel objects for easy conversion through dwr.
 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.
 

Method Detail

getCartItems

java.util.List<CartItem> 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

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

setVelocityEngine

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

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

getShippingServiceLevels

java.util.List<ShippingServiceLevel> getShippingServiceLevels(ShoppingCart shoppingCart)
Method for wrapping the ShippingServiceLevel objects for easy conversion through dwr.

Parameters:
shoppingCart - the shopping cart containing the shipping service levels to wrap.
Returns:
a list of shipping service levels wrapped in ShippingServiceLevelBean objects.