public class C2CCSREnvironmentMonitor
extends atg.svc.agent.environment.EnvironmentMonitor
It will add a new change detail for the order referenced by the C2C application data repository item.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected atg.clicktoconnect.C2CSessionDataPropertyManager |
mC2CSessionDataPropertyManager |
protected atg.commerce.clicktoconnect.CommerceC2CSessionDataPropertyManager |
mCommerceC2CSessionDataPropertyManager |
protected CSREnvironmentTools |
mCSREnvironmentTools |
protected atg.commerce.promotion.PromotionTools |
mPromotionTools |
Constructor and Description |
---|
C2CCSREnvironmentMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
applyChanges(atg.svc.agent.environment.EnvironmentChangeState pEnvironmentChangeState)
If the active customer profile is transient, retrieves the promotions from the C2C application
repository item and grants any promotion to the active customer profile that it
doesn't already have.
|
protected void |
applyPromotions(atg.repository.RepositoryItem pProfile,
atg.svc.clicktoconnect.C2CRequestData pC2CRequestData,
atg.svc.agent.environment.EnvironmentChangeState pEnvironmentChangeState)
Grants each promotion in the C2CRequestData that the profile doesn't already have and
reprices the order.
|
protected void |
generateChangeDetails(atg.svc.clicktoconnect.C2CRequestData pC2CRequestData,
atg.svc.agent.environment.EnvironmentChangeState pEnvironmentChangeState)
Generates change details based on the C2CRequestData.
|
protected void |
generateChangeDetailsForChangeKey(java.lang.String pChangeKey,
atg.svc.agent.environment.EnvironmentChangeState pEnvironmentChangeState)
Generates change details for new C2C start request.
|
protected void |
generateDependentChangeDetails(atg.svc.agent.environment.EnvironmentChangeDetail pEnvironmentChangeDetail,
atg.svc.agent.environment.EnvironmentChangeState pEnvironmentChangeState)
noop implementation
|
atg.clicktoconnect.C2CSessionDataPropertyManager |
getC2CSessionDataPropertyManager()
Returns the c2CSessionDataPropertyManager
|
atg.commerce.clicktoconnect.CommerceC2CSessionDataPropertyManager |
getCommerceC2CSessionDataPropertyManager()
Returns the property manager for the C2C session data.
|
CSREnvironmentTools |
getCSREnvironmentTools() |
java.lang.Object |
getEnvironmentObject(java.lang.String pEnvironmentObjectName)
noop implementation
|
atg.commerce.promotion.PromotionTools |
getPromotionTools()
Returns the core commerce PromotionTools component
which is used to grant promotions on the C2CRequestData
|
void |
setC2CSessionDataPropertyManager(atg.clicktoconnect.C2CSessionDataPropertyManager pC2cSessionDataPropertyManager)
Sets the c2CSessionDataPropertyManager
|
void |
setCommerceC2CSessionDataPropertyManager(atg.commerce.clicktoconnect.CommerceC2CSessionDataPropertyManager pCommerceC2CSessionDataPropertyManager) |
void |
setCSREnvironmentTools(CSREnvironmentTools pCSREnvironmentTools)
Sets the property CSREnvironmentTools.
|
void |
setPromotionTools(atg.commerce.promotion.PromotionTools pPromotionTools) |
createWarningsForEnvironmentChange, generateChangeDetails, getAgentMessagingTools, getEnvironmentTools, initializeDefaultsForProfile, postApplyChanges, preApplyChanges, revertChanges, setAgentMessagingTools, setEnvironmentTools
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, 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, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
protected atg.commerce.promotion.PromotionTools mPromotionTools
protected atg.commerce.clicktoconnect.CommerceC2CSessionDataPropertyManager mCommerceC2CSessionDataPropertyManager
protected CSREnvironmentTools mCSREnvironmentTools
protected atg.clicktoconnect.C2CSessionDataPropertyManager mC2CSessionDataPropertyManager
public atg.commerce.promotion.PromotionTools getPromotionTools()
public void setPromotionTools(atg.commerce.promotion.PromotionTools pPromotionTools)
public atg.commerce.clicktoconnect.CommerceC2CSessionDataPropertyManager getCommerceC2CSessionDataPropertyManager()
public void setCommerceC2CSessionDataPropertyManager(atg.commerce.clicktoconnect.CommerceC2CSessionDataPropertyManager pCommerceC2CSessionDataPropertyManager)
public void setCSREnvironmentTools(CSREnvironmentTools pCSREnvironmentTools)
public CSREnvironmentTools getCSREnvironmentTools()
public atg.clicktoconnect.C2CSessionDataPropertyManager getC2CSessionDataPropertyManager()
public void setC2CSessionDataPropertyManager(atg.clicktoconnect.C2CSessionDataPropertyManager pC2cSessionDataPropertyManager)
pC2cSessionDataPropertyManager
- the c2CSessionDataPropertyManager to setprotected void generateChangeDetailsForChangeKey(java.lang.String pChangeKey, atg.svc.agent.environment.EnvironmentChangeState pEnvironmentChangeState) throws atg.svc.agent.environment.EnvironmentChangeDetailConflict, atg.svc.agent.environment.EnvironmentException
generateChangeDetailsForChangeKey
in class atg.svc.agent.environment.EnvironmentMonitor
atg.svc.agent.environment.EnvironmentChangeDetailConflict
atg.svc.agent.environment.EnvironmentException
C2CConstants.ENV_CHG_START_NEW_C2C_CALL
,
C2CConstants.ENV_CHG_START_NEW_C2C_CALL_C2CREQUESTDATA_PARAM
,
C2CRequestData
,
generateChangeDetails(C2CRequestData, EnvironmentChangeState)
protected void generateChangeDetails(atg.svc.clicktoconnect.C2CRequestData pC2CRequestData, atg.svc.agent.environment.EnvironmentChangeState pEnvironmentChangeState) throws atg.svc.agent.environment.EnvironmentException
Adds a change detail for the order, price list, sale price list id and site specified by the C2CRequestData's application data repository item.
pC2CRequestData
- pEnvironmentChangeState
- atg.svc.agent.environment.EnvironmentException
protected void generateDependentChangeDetails(atg.svc.agent.environment.EnvironmentChangeDetail pEnvironmentChangeDetail, atg.svc.agent.environment.EnvironmentChangeState pEnvironmentChangeState) throws atg.svc.agent.environment.EnvironmentChangeDetailConflict, atg.svc.agent.environment.EnvironmentException
generateDependentChangeDetails
in class atg.svc.agent.environment.EnvironmentMonitor
atg.svc.agent.environment.EnvironmentChangeDetailConflict
atg.svc.agent.environment.EnvironmentException
public void applyChanges(atg.svc.agent.environment.EnvironmentChangeState pEnvironmentChangeState) throws atg.svc.agent.environment.EnvironmentException
If any promotions are granted, the pricing model holder is re-initialized and the current order is repriced.
applyChanges
in class atg.svc.agent.environment.EnvironmentMonitor
atg.svc.agent.environment.EnvironmentException
applyPromotions(RepositoryItem, C2CRequestData, EnvironmentChangeState)
protected void applyPromotions(atg.repository.RepositoryItem pProfile, atg.svc.clicktoconnect.C2CRequestData pC2CRequestData, atg.svc.agent.environment.EnvironmentChangeState pEnvironmentChangeState)
pProfile
- pC2CRequestData
- pEnvironmentChangeState
- public java.lang.Object getEnvironmentObject(java.lang.String pEnvironmentObjectName)
getEnvironmentObject
in class atg.svc.agent.environment.EnvironmentMonitor