|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.commerce.order.abandoned.AbandonedOrderEventListener
public class AbandonedOrderEventListener
This class determines if there is a transient order associated with an expired session that should be logged as an abandoned order.
This class must be added to the SessionManager's list of nameContextBindingListeners in order for it to know when sessions are destroyed.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
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 | |
---|---|
AbandonedOrderEventListener()
Empty constructor. |
Method Summary | |
---|---|
MessageSender |
getMessageSender()
|
double |
getMinimumAmount()
Returns the minimum amount an order can be valued for it to be logged. |
protected atg.nucleus.NucleusNameResolver |
getNameResolver(NameContext pSession)
Gets a name resolver that is scoped to the session. |
protected RepositoryItem |
getProfile(DynamoHttpServletRequest pRequest)
Gets the session-scoped profile from the given request |
protected java.lang.String |
getProfileId(DynamoHttpServletRequest pRequest)
Gets the profile id for the current request's session-scoped profile |
java.lang.String |
getProfileItemName()
Returns the name of the user item descriptor in the profile repository. |
java.lang.String |
getProfilePath()
The full name of the Profile component for every request. |
Repository |
getProfileRepository()
Returns the repository in which user profiles are stored. |
protected OrderHolder |
getShoppingCart(DynamoHttpServletRequest pRequest)
|
java.lang.String |
getShoppingCartPath()
The full name of the ShoppingCart component for every request. |
java.lang.String |
getSubmitOrderJMSType()
Returns the JMS type of the SubmitOrder event. |
boolean |
isBroadcastExpiredSessionEvents()
Returns property BroadcastExpiredSessionEvents |
boolean |
isEnabled()
|
void |
nameContextElementPreBound(NameContextBindingEvent pEvent)
Dummy implementation to satisfy interface requirement. |
void |
nameContextElementPreUnbound(NameContextBindingEvent pEvent)
Called just before a session is destroyed. |
void |
receiveMessage(java.lang.String pPortName,
javax.jms.Message pMessage)
This is called to notify the component that a Message has arrived through the given input port. |
void |
setBroadcastExpiredSessionEvents(boolean pBroadcastExpiredSessionEvents)
Sets property BroadcastExpiredSessionEvents |
void |
setEnabled(boolean pEnabled)
boolean indicating if this component should do anything. |
void |
setMessageSender(MessageSender pMessageSender)
The component that sends abandonment-related JMS messages. |
void |
setMinimumAmount(double pMinimumAmount)
Sets the minimum amount an order can be valued for it to be logged. |
void |
setProfileItemName(java.lang.String pProfileItemName)
Sets the name of the user item descriptor in the profile repository. |
void |
setProfilePath(java.lang.String pValue)
The full name of the Profile component for every request. |
void |
setProfileRepository(Repository pProfileRepository)
Sets the repository in which user profiles are stored |
void |
setShoppingCartPath(java.lang.String pValue)
The full name of the ShoppingCart component for every request. |
void |
setSubmitOrderJMSType(java.lang.String pSubmitOrderJMSType)
Sets the JMS type of the SubmitOrder event |
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 |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public AbandonedOrderEventListener()
Method Detail |
---|
public void setBroadcastExpiredSessionEvents(boolean pBroadcastExpiredSessionEvents)
public boolean isBroadcastExpiredSessionEvents()
public void setEnabled(boolean pEnabled)
pEnabled
- boolean indicating if this component should do anything.public boolean isEnabled()
public void setMessageSender(MessageSender pMessageSender)
pMessageSender
- the component that sends abandonment-related
JMS messages.public MessageSender getMessageSender()
public void setMinimumAmount(double pMinimumAmount)
public double getMinimumAmount()
public void setProfileItemName(java.lang.String pProfileItemName)
public java.lang.String getProfileItemName()
public void setProfileRepository(Repository pProfileRepository)
public Repository getProfileRepository()
public void setProfilePath(java.lang.String pValue)
public java.lang.String getProfilePath()
public void setShoppingCartPath(java.lang.String pValue)
public java.lang.String getShoppingCartPath()
public void setSubmitOrderJMSType(java.lang.String pSubmitOrderJMSType)
public java.lang.String getSubmitOrderJMSType()
public void nameContextElementPreBound(NameContextBindingEvent pEvent)
nameContextElementPreBound
in interface atg.naming.NameContextPreBindingListener
public void nameContextElementPreUnbound(NameContextBindingEvent pEvent)
nameContextElementPreUnbound
in interface atg.naming.NameContextPreBindingListener
public void receiveMessage(java.lang.String pPortName, javax.jms.Message pMessage) throws javax.jms.JMSException
MessageSink
receiveMessage
in interface MessageSink
javax.jms.JMSException
protected RepositoryItem getProfile(DynamoHttpServletRequest pRequest)
pRequest
- the request to examine
protected OrderHolder getShoppingCart(DynamoHttpServletRequest pRequest)
protected java.lang.String getProfileId(DynamoHttpServletRequest pRequest)
pRequest
- the request to examine
protected atg.nucleus.NucleusNameResolver getNameResolver(NameContext pSession)
pSession
- the session NameContext
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |