atg.projects.store.order.purchase
Class CheckoutProgressStates

java.lang.Object
  extended by atg.projects.store.order.purchase.CheckoutProgressStates

public class CheckoutProgressStates
extends java.lang.Object

Contains available checkout milestones and current checkout progress level.


Nested Class Summary
static class CheckoutProgressStates.DEFAULT_STATES
          Contains default states
 
Field Summary
static java.lang.String CLASS_VERSION
          Class version
 
Constructor Summary
CheckoutProgressStates()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Integer> getCheckoutProgressLevels()
          checoutProgressLevels property contains checkout milestones available for user.
 java.lang.String getCurrentLevel()
          currentLevel property determines which pages can be displayed to user.
 int getCurrentLevelAsInt()
           
 void setCheckoutProgressLevels(java.util.Map pCheckoutProgressLevels)
          Sets checkout progress levels
 void setCurrentLevel(java.lang.String pCurrentLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version

See Also:
Constant Field Values
Constructor Detail

CheckoutProgressStates

public CheckoutProgressStates()
Method Detail

getCurrentLevel

public java.lang.String getCurrentLevel()
currentLevel property determines which pages can be displayed to user. I.e. BILLING level means that user can see all pages but confirmation, SHIPPING level means that user can see his cart contents ant shipping page.

Returns:
current level

setCurrentLevel

public void setCurrentLevel(java.lang.String pCurrentLevel)
Parameters:
pCurrentLevel - the current level to set

getCurrentLevelAsInt

public int getCurrentLevelAsInt()
Returns:
numeric representation of currentLevel property

getCheckoutProgressLevels

public java.util.Map<java.lang.String,java.lang.Integer> getCheckoutProgressLevels()
checoutProgressLevels property contains checkout milestones available for user. These milestones are stored in form of map, linking milestone name with it's level int value. Milestones with lower level are available for displaying to user.

Returns:
the checkout progress levels

setCheckoutProgressLevels

public void setCheckoutProgressLevels(java.util.Map pCheckoutProgressLevels)
Sets checkout progress levels

Parameters:
pCheckoutProgressLevels - the checkout progress levels to set