|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.projects.store.userprofiling.RecentlyViewedHistoryCollector
public class RecentlyViewedHistoryCollector
This MessageSink component listens for JMS 'product' ViewItem messages. It will receive all product information from the ProductBrowsed droplet which fires the JMS messages. When the product information is extracted from a JMS message, processing is delegated to the RecentlyViewedTools component which adds the product to the recently viewed list.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected atg.repository.Repository |
mCatalogRepository
|
protected java.lang.String |
mMessageType
|
protected StoreProfileTools |
mProfileTools
|
protected RecentlyViewedTools |
mRecentlyViewedTools
|
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 | |
---|---|
RecentlyViewedHistoryCollector()
|
Method Summary | |
---|---|
atg.repository.Repository |
getCatalogRepository()
|
java.lang.String |
getMessageType()
|
StoreProfileTools |
getProfileTools()
|
RecentlyViewedTools |
getRecentlyViewedTools()
|
void |
processMessage(atg.userprofiling.dms.ViewItemMessage pItemMessage)
Process received product data item. |
void |
receiveMessage(java.lang.String pPortName,
javax.jms.Message pMessage)
Receives JMS message and processes it if the message type in the message is equal to mMessageType and the itemType in
the message is equal to the 'product' item name. |
void |
setCatalogRepository(atg.repository.Repository pCatalogRepository)
|
void |
setMessageType(java.lang.String pMessageType)
|
void |
setProfileTools(StoreProfileTools pProfileTools)
|
void |
setRecentlyViewedTools(RecentlyViewedTools pRecentlyViewedTools)
|
Methods inherited from class atg.nucleus.GenericService |
---|
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 |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, 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 final java.lang.String CLASS_VERSION
protected RecentlyViewedTools mRecentlyViewedTools
protected java.lang.String mMessageType
protected atg.repository.Repository mCatalogRepository
protected StoreProfileTools mProfileTools
Constructor Detail |
---|
public RecentlyViewedHistoryCollector()
Method Detail |
---|
public RecentlyViewedTools getRecentlyViewedTools()
public void setRecentlyViewedTools(RecentlyViewedTools pRecentlyViewedTools)
pProfileTools
- the ProfileTools to setpublic java.lang.String getMessageType()
public void setMessageType(java.lang.String pMessageType)
pMessageType
- The new JMS message typepublic atg.repository.Repository getCatalogRepository()
public void setCatalogRepository(atg.repository.Repository pCatalogRepository)
The
- catalogRepository.public StoreProfileTools getProfileTools()
public void setProfileTools(StoreProfileTools pProfileTools)
pProfileTools
- the ProfileTools to setpublic void receiveMessage(java.lang.String pPortName, javax.jms.Message pMessage) throws javax.jms.JMSException
mMessageType
and the itemType in
the message is equal to the 'product' item name.
receiveMessage
in interface atg.dms.patchbay.MessageSink
javax.jms.JMSException
public void processMessage(atg.userprofiling.dms.ViewItemMessage pItemMessage)
pItemMessage
- The JMS message to be processed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |