atg.commerce.clicktoconnect
Class SaveCommerceC2CSessionData

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.commerce.clicktoconnect.SaveCommerceC2CSessionData
All Implemented Interfaces:
C2CSavable, NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener

public class SaveCommerceC2CSessionData
extends GenericService
implements C2CSavable

This class adds Commerce related data to the C2CSession repository item


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
protected  java.lang.String mActivePromotionsPropertyName
           
protected  java.lang.String mCatalogPropertyName
           
protected  CatalogTools mCatalogTools
           
protected  atg.commerce.clicktoconnect.CommerceC2CSessionDataManager mCommerceC2CSessionDataManager
           
protected  java.lang.String mPriceListPropertyName
           
protected  java.lang.String mProfilePath
           
protected  java.lang.String mSalePriceListPropertyName
           
protected  java.lang.String mShoppingCartPath
           
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
SaveCommerceC2CSessionData()
           
 
Method Summary
 java.lang.String getActivePromotionsPropertyName()
           
 java.lang.String getCatalogPropertyName()
           
 CatalogTools getCatalogTools()
           
 atg.commerce.clicktoconnect.CommerceC2CSessionDataManager getCommerceC2CSessionDataManager()
           
 java.lang.String getPriceListPropertyName()
           
 java.lang.String getProfilePath()
           
 java.lang.String getSalePriceListPropertyName()
           
 java.lang.String getShoppingCartPath()
           
 void save(MutableRepositoryItem pC2CSession)
          This method save all commerce specific session data: The current order, which will be saved first if it transient The priceList associated with the profile The salePriceList associated with the profile The catalog id if there is a custom catalog The site id if there is a non empty current site context Any active promotions associated with the profile
 void setActivePromotionsPropertyName(java.lang.String mActivePromotionsPropertyName)
           
 void setCatalogPropertyName(java.lang.String pCatalogPropertyName)
           
 void setCatalogTools(CatalogTools pCatalogTools)
           
 void setCommerceC2CSessionDataManager(atg.commerce.clicktoconnect.CommerceC2CSessionDataManager pCommerceC2CSessionDataManager)
           
 void setPriceListPropertyName(java.lang.String pPriceListPropertyName)
           
 void setProfilePath(java.lang.String pProfilePath)
           
 void setSalePriceListPropertyName(java.lang.String pSalePriceListPropertyName)
           
 void setShoppingCartPath(java.lang.String pShoppingCartPath)
           
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


mCommerceC2CSessionDataManager

protected atg.commerce.clicktoconnect.CommerceC2CSessionDataManager mCommerceC2CSessionDataManager

mPriceListPropertyName

protected java.lang.String mPriceListPropertyName

mSalePriceListPropertyName

protected java.lang.String mSalePriceListPropertyName

mCatalogPropertyName

protected java.lang.String mCatalogPropertyName

mActivePromotionsPropertyName

protected java.lang.String mActivePromotionsPropertyName

mProfilePath

protected java.lang.String mProfilePath

mShoppingCartPath

protected java.lang.String mShoppingCartPath

mCatalogTools

protected CatalogTools mCatalogTools
Constructor Detail

SaveCommerceC2CSessionData

public SaveCommerceC2CSessionData()
Method Detail

setCommerceC2CSessionDataManager

public void setCommerceC2CSessionDataManager(atg.commerce.clicktoconnect.CommerceC2CSessionDataManager pCommerceC2CSessionDataManager)
Parameters:
mCommerceC2CSessionDataManager - the mCommerceC2CSessionDataManager to set

getCommerceC2CSessionDataManager

public atg.commerce.clicktoconnect.CommerceC2CSessionDataManager getCommerceC2CSessionDataManager()
Returns:
the mCommerceC2CSessionDataManager

setPriceListPropertyName

public void setPriceListPropertyName(java.lang.String pPriceListPropertyName)
Parameters:
mPriceListPropertyName - the mPriceListPropertyName to set

getPriceListPropertyName

public java.lang.String getPriceListPropertyName()
Returns:
the mPriceListPropertyName

setSalePriceListPropertyName

public void setSalePriceListPropertyName(java.lang.String pSalePriceListPropertyName)
Parameters:
mSalePriceListPropertyName - the mSalePriceListPropertyName to set

getSalePriceListPropertyName

public java.lang.String getSalePriceListPropertyName()
Returns:
the mSalePriceListPropertyName

setCatalogPropertyName

public void setCatalogPropertyName(java.lang.String pCatalogPropertyName)
Parameters:
mCatalogPropertyName - the mCatalogPropertyName to set

getCatalogPropertyName

public java.lang.String getCatalogPropertyName()
Returns:
the mCatalogPropertyName

setActivePromotionsPropertyName

public void setActivePromotionsPropertyName(java.lang.String mActivePromotionsPropertyName)
Parameters:
mActivePromotionsPropertyName - the mActivePromotionsPropertyName to set

getActivePromotionsPropertyName

public java.lang.String getActivePromotionsPropertyName()
Returns:
the mActivePromotionsPropertyName

setProfilePath

public void setProfilePath(java.lang.String pProfilePath)
Parameters:
mProfilePath - the mProfilePath to set

getProfilePath

public java.lang.String getProfilePath()
Returns:
the mProfilePath

setShoppingCartPath

public void setShoppingCartPath(java.lang.String pShoppingCartPath)
Parameters:
mShoppingCartPath - the mShoppingCartPath to set

getShoppingCartPath

public java.lang.String getShoppingCartPath()
Returns:
the mShoppingCartPath

setCatalogTools

public void setCatalogTools(CatalogTools pCatalogTools)
Parameters:
mCatalogTools - the pCatalogTools to set

getCatalogTools

public CatalogTools getCatalogTools()
Returns:
the mCatalogTools

save

public void save(MutableRepositoryItem pC2CSession)
          throws C2CSessionException
This method save all commerce specific session data:

Specified by:
save in interface C2CSavable
Parameters:
pC2CSession - A repository item representing the C2CSession
Throws:
C2CSessionException