public class RemovedItemCheck
extends atg.servlet.DynamoServlet
This droplet takes an order, retrieves it's List of commerce items and
checks if any 'removed' items exist. If a removed item is found and the
invalidateOrder is set to true, the order will
be invalidated.
Input Paramaters:
Open Parameters:
Example:
<dsp:droplet bean="/atg/store/droplet/RemovedItemsCheck">
<dsp:param name="invalidateOrder" value="true">
<dsp:oparam name="true">
<dsp:droplet name="RepriceOrderDroplet">
<dsp:param name="pricingOp" value="ORDER_SUBTOTAL"/>
</dsp:droplet>
</dsp:oparam>
</dsp:droplet>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static atg.nucleus.naming.ParameterName |
INVALIDATE_ORDER
invalidateOrder parameter name.
|
static atg.nucleus.naming.ParameterName |
OPARAM_OUTPUT_FALSE
The oparam name rendered once if no items in the order are found to be removed.
|
static atg.nucleus.naming.ParameterName |
OPARAM_OUTPUT_TRUE
The oparam name rendered once if an item in the order is found to be removed.
|
| Constructor and Description |
|---|
RemovedItemCheck() |
| Modifier and Type | Method and Description |
|---|---|
atg.commerce.order.OrderHolder |
getShoppingCart()
Returns property ShoppingCart.
|
void |
service(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method takes an order, retrieves it's List of commerce items and
checks if any 'removed' items exist.
|
void |
setShoppingCart(atg.commerce.order.OrderHolder pShoppingCart)
Sets property ShoppingCart.
|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameterdestroy, getServletConfig, getServletInfo, setServletInfogetAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatisticsaddLogListener, 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, stopServicevlogDebug, 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 atg.nucleus.naming.ParameterName INVALIDATE_ORDER
public static final atg.nucleus.naming.ParameterName OPARAM_OUTPUT_TRUE
public static final atg.nucleus.naming.ParameterName OPARAM_OUTPUT_FALSE
public void setShoppingCart(atg.commerce.order.OrderHolder pShoppingCart)
pShoppingCart - an OrderHolder valuepublic atg.commerce.order.OrderHolder getShoppingCart()
OrderHolder valuepublic void service(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
invalidateOrder is set to true, the order will
be invalidated.service in class atg.servlet.DynamoServletpRequest - - DynamoHttpSevletRequest.pResponse - - DynamoHttpServletResponse.javax.servlet.ServletException - - if an error occurs.java.io.IOException - - if an error occurs.