public class GetSKUParentProductDroplet
extends atg.servlet.DynamoServlet
This droplet takes the following input parameters:
This droplet services the following oparams:
This droplet sets the following output parameters:
Example:
<dsp:droplet name="/atg/commerce/custsvc/catalog/GetSKUParentProductDroplet">
<dsp:param name="skuId" value="skuId">
<dsp:oparam name="output">
<dsp:valueof param="product"/>
</dsp:oparam>
</dsp:droplet>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
OUTPUT |
static java.lang.String |
PRODUCT |
static java.lang.String |
SKU_ID |
| Constructor and Description |
|---|
GetSKUParentProductDroplet() |
| Modifier and Type | Method and Description |
|---|---|
atg.repository.Repository |
getCatalogRepository() |
atg.commerce.catalog.CatalogTools |
getCatalogTools()
Returns the property catalogTools which is a reference to a DCS component that
takes care of many common catalog related tasks.
|
void |
service(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Entry method: gets category id and returns list of its ancestors
|
void |
setCatalogRepository(atg.repository.Repository pCatalogRepository)
The catalog repository
|
void |
setCatalogTools(atg.commerce.catalog.CatalogTools pCatalogTools)
Sets the property catalogTools which is a reference to a DCS component that
takes care of many common catalog related tasks.
|
protected void |
setCategoryAncestors(atg.servlet.DynamoHttpServletRequest pRequest,
atg.repository.RepositoryItem sku)
Extracts category ancestors list and sets it as ANCESTORS output param
|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameterdestroy, getServletConfig, getServletInfo, setServletInfogetAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatisticsaddLogListener, clearAbsoluteNameAndContext, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, isStartServiceComplete, 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, toStringvlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static final java.lang.String CLASS_VERSION
public static final java.lang.String SKU_ID
public static final java.lang.String OUTPUT
public static final java.lang.String PRODUCT
public void setCatalogTools(atg.commerce.catalog.CatalogTools pCatalogTools)
pCatalogTools - the DCS component located at /atg/commerce/catalog/CatalogToolspublic atg.commerce.catalog.CatalogTools getCatalogTools()
public void setCatalogRepository(atg.repository.Repository pCatalogRepository)
pCatalogRepository - the catalog repositorypublic atg.repository.Repository getCatalogRepository()
public void service(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
service in class atg.servlet.DynamoServletpRequest - requestpResponse - responsejavax.servlet.ServletExceptionjava.io.IOExceptionprotected void setCategoryAncestors(atg.servlet.DynamoHttpServletRequest pRequest,
atg.repository.RepositoryItem sku)
pRequest - sku -