public class RecentlyViewedHistoryCollector
extends atg.nucleus.GenericService
implements atg.dms.patchbay.MessageSink
Modifier and Type | Field and Description |
---|---|
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 |
Constructor and Description |
---|
RecentlyViewedHistoryCollector() |
Modifier and Type | Method and Description |
---|---|
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) |
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, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static final java.lang.String CLASS_VERSION
protected RecentlyViewedTools mRecentlyViewedTools
protected java.lang.String mMessageType
protected atg.repository.Repository mCatalogRepository
protected StoreProfileTools mProfileTools
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.