| 
 | |||||||||
| 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.GiftWithPurchaseSelectionsDroplet
public class GiftWithPurchaseSelectionsDroplet
Droplet to retrieve all of the gift with purchase selection on an order or a commerce item. If the commerce item is supplied then the selections only apply to that item. Input parameters:
true then only selections 
 where quantityAvaiableForSelection is > 0 will be output. Defaults to false.
 
| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSION | 
| static ParameterName | EMPTY | 
| static ParameterName | ERROR | 
| static java.lang.String | ERROR_MESSAGE | 
| static ParameterName | ITEM | 
| protected  GWPManager | mGwpManagerManager component for gift with purchase promotions | 
| static ParameterName | ONLY_AVAILABLE | 
| static ParameterName | ORDER | 
| static ParameterName | OUTPUT | 
| static java.lang.String | SELECTIONS | 
| 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 | |
|---|---|
| GiftWithPurchaseSelectionsDroplet() | |
| Method Summary | |
|---|---|
|  GWPManager | getGwpManager()Getter for the gift with purchase manager property. | 
| protected  CommerceItem | getItem(DynamoHttpServletRequest pRequest)Gets the commerce item from the request if available | 
| protected  Order | getOrder(DynamoHttpServletRequest pRequest)Gets the Order from the request if available | 
| protected  java.util.Collection<GiftWithPurchaseSelection> | getSelections(Order pOrder,
              boolean pOnlyOutputAvailableSelections)Gets the GiftWithPurchaseSelection beans for an order. | 
| protected  java.util.Collection<GiftWithPurchaseSelection> | getSelections(Order pOrder,
              CommerceItem pItem)Gets the GiftWithPurchaseSelection beans for a commerce item | 
| protected  boolean | isOnlyOutputAvailableSelections(DynamoHttpServletRequest pRequest)Gets the onlyOutputAvailableSelections input parameter if available. | 
|  void | service(DynamoHttpServletRequest pRequest,
        DynamoHttpServletResponse pResponse)Outputs the gift selections for a given order or item. | 
| 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. | 
| Methods inherited from class atg.servlet.DynamoServlet | 
|---|
| doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameter | 
| Methods inherited from class atg.nucleus.servlet.ServletService | 
|---|
| destroy, getServletConfig, getServletInfo, 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
public static final ParameterName ORDER
public static final ParameterName ITEM
public static final ParameterName ONLY_AVAILABLE
public static final java.lang.String SELECTIONS
public static final java.lang.String ERROR_MESSAGE
public static final ParameterName OUTPUT
public static final ParameterName ERROR
public static final ParameterName EMPTY
protected GWPManager mGwpManager
| Constructor Detail | 
|---|
public GiftWithPurchaseSelectionsDroplet()
| 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<GiftWithPurchaseSelection> getSelections(Order pOrder,
                                                                        boolean pOnlyOutputAvailableSelections)
                                                                 throws CommerceException
true then only selections where 
 quantityAvaiableForSelection is > 0 will be returned.
pOrder - Order to inspectpOnlyOutputAvailableSelections - boolean true to only return available selections
CommerceException
protected java.util.Collection<GiftWithPurchaseSelection> getSelections(Order pOrder,
                                                                        CommerceItem pItem)
                                                                 throws CommerceException
pOrder - Order to inspectpItem - CommerceItem to inspect
CommerceExceptionprotected Order getOrder(DynamoHttpServletRequest pRequest)
pRequest - DynamoHttpServletRequest
protected CommerceItem getItem(DynamoHttpServletRequest pRequest)
pRequest - DynamoHttpServletRequest
protected boolean isOnlyOutputAvailableSelections(DynamoHttpServletRequest pRequest)
pRequest - DynamoHttpServletRequest
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||