|
|||||||||
| 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.nucleus.TimedOperationService
atg.nucleus.servlet.ServletService
atg.nucleus.servlet.HttpServletService
atg.servlet.DynamoServlet
atg.commerce.promotion.GiftWithPurchaseSelectionChoicesDroplet
public class GiftWithPurchaseSelectionChoicesDroplet
Droplet to retrieve all of the products and skus available for selection for a gift with purchase gift. Input parameters:
| Field Summary | |
|---|---|
protected static ParameterName |
ALWAYS_RETURN_SKUS
|
protected static java.lang.String |
CHOICES
|
static java.lang.String |
CLASS_VERSION
|
protected static ParameterName |
EMPTY
|
protected static ParameterName |
ERROR
|
protected static java.lang.String |
ERROR_MESSAGE
|
protected static ParameterName |
GIFT_DETAIL
|
protected static ParameterName |
GIFT_TYPE
|
protected GWPManager |
mGwpManager
Manager component for gift with purchase promotions |
protected static ParameterName |
OUTPUT
|
protected static ParameterName |
SELECTION
|
| Fields inherited from class atg.servlet.DynamoServlet |
|---|
mAllowCleanupRequest, mParameters |
| Fields inherited from class atg.nucleus.servlet.ServletService |
|---|
SERVLET_INFO_KEY |
| 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 | |
|---|---|
GiftWithPurchaseSelectionChoicesDroplet()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
getGiftDetail(DynamoHttpServletRequest pRequest,
GiftWithPurchaseSelection pSelection)
Gets the gift detail to use either from the GiftWithPurchaseSelection bean or as a separate request parameter. |
protected java.lang.String |
getGiftType(DynamoHttpServletRequest pRequest,
GiftWithPurchaseSelection pSelection)
Gets the gift type to use either from the GiftWithPurchaseSelection bean or as a separate request parameter. |
GWPManager |
getGwpManager()
Getter for the gift with purchase manager property. |
protected GiftWithPurchaseSelection |
getSelection(DynamoHttpServletRequest pRequest)
Gets the GiftWithPurchaseSelection bean from the request if available |
protected java.util.Collection<GiftWithPurchaseSelectionChoice> |
getSelectionChoices(java.lang.String pGiftType,
java.lang.String pGiftDetail,
boolean pReturnSkus)
Gets the GiftWithPurchaseSelectionChoice beans for a gift selection |
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Outputs the gift selection choices for a given free gift. |
protected void |
serviceError(java.lang.String pErrorMsg,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Handles an error by servicing the error parameter. |
void |
setGwpManager(GWPManager pGwpManager)
Setter for the gift with purchase manager property. |
protected boolean |
shouldAlwaysReturnSkus(DynamoHttpServletRequest pRequest)
Gets the alwaysReturnSkus boolean from the request if available |
| Methods inherited from class atg.servlet.DynamoServlet |
|---|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, service, service, setParameter |
| Methods inherited from class atg.nucleus.servlet.ServletService |
|---|
destroy, getServletConfig, getServletInfo, init, setServletInfo |
| Methods inherited from class atg.nucleus.TimedOperationService |
|---|
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics |
| 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 java.lang.String CLASS_VERSION
protected static final ParameterName SELECTION
protected static final ParameterName GIFT_TYPE
protected static final ParameterName GIFT_DETAIL
protected static final ParameterName ALWAYS_RETURN_SKUS
protected static final java.lang.String CHOICES
protected static final java.lang.String ERROR_MESSAGE
protected static final ParameterName OUTPUT
protected static final ParameterName ERROR
protected static final ParameterName EMPTY
protected GWPManager mGwpManager
| Constructor Detail |
|---|
public GiftWithPurchaseSelectionChoicesDroplet()
| Method Detail |
|---|
public void setGwpManager(GWPManager pGwpManager)
pGwpManager - GWPManagerpublic GWPManager getGwpManager()
public void service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
service in class DynamoServletpRequest - the current requestpResponse - the current response
javax.servlet.ServletException - an application specific error occurred
processing this request
java.io.IOException - an error occurred reading data from the request
or writing data to the response.
protected void serviceError(java.lang.String pErrorMsg,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pErrorMsg - String error messagepRequest - DynamoHttpServletRequestpResponse - DynamoHttpServletResponse
javax.servlet.ServletException
java.io.IOException
protected java.util.Collection<GiftWithPurchaseSelectionChoice> getSelectionChoices(java.lang.String pGiftType,
java.lang.String pGiftDetail,
boolean pReturnSkus)
throws CommerceException
pGiftType - String gift typepGiftDetail - String gift detailpReturnSkus - boolean, true to return the skus for all choices
MarkerException
CommerceExceptionprotected GiftWithPurchaseSelection getSelection(DynamoHttpServletRequest pRequest)
pRequest - DynamoHttpServletRequest
protected java.lang.String getGiftType(DynamoHttpServletRequest pRequest,
GiftWithPurchaseSelection pSelection)
pRequest - DynamoHttpServletRequestpSelection - GiftWithPurchaseSelection bean
protected java.lang.String getGiftDetail(DynamoHttpServletRequest pRequest,
GiftWithPurchaseSelection pSelection)
pRequest - DynamoHttpServletRequestpSelection - GiftWithPurchaseSelection bean
protected boolean shouldAlwaysReturnSkus(DynamoHttpServletRequest pRequest)
pRequest - DynamoHttpServletRequest
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||