|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.nucleus.TimedOperationService atg.nucleus.servlet.ServletService atg.nucleus.servlet.HttpServletService atg.servlet.DynamoServlet atg.commerce.csr.returns.NonReturnItemDetailsDroplet
public class NonReturnItemDetailsDroplet
This droplet renders information about refund adjustments that were applied to non return items. A non return item is a term used to described any item shipping group relationship that is not reference by a ReturnItem in the ReturnRequest. input params
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
static java.lang.String |
COMMERCEITEM
The following are the parameters available in returnDetail oparam |
static java.lang.String |
ITEM_COST_ADJUSTMENTS
|
protected ReturnTools |
mReturnTools
|
static ParameterName |
OUTPUT_EMPTY
oparam rendered if there are no non return items |
static ParameterName |
OUTPUT_END
oparam rendered once after rendering all of the non return items |
static ParameterName |
OUTPUT_START
oparam rendered once before rendering all of the non return items |
static java.lang.String |
QUANTITY_ADJUSTED
|
static ParameterName |
RETURN_DETAIL
oparam rendered once for each non return item |
static ParameterName |
RETURN_REQUEST
|
static java.lang.String |
SHIPPINGGROUP
The following are the parameters available in returnDetail oparam |
static java.lang.String |
TOTAL_ADJUSTMENT
|
static java.lang.String |
TOTAL_AMOUNT_ADJUSTMENT
|
static java.lang.String |
TOTAL_MANUALADJUSTMENT_ADJUSTMENT
|
static java.lang.String |
TOTAL_ORDERDISCOUNT_ADJUSTMENT
|
static java.lang.String |
TOTAL_SHIPPING_ADJUSTMENT
|
static java.lang.String |
TOTAL_TAX_ADJUSTMENT
|
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 | |
---|---|
NonReturnItemDetailsDroplet()
|
Method Summary | |
---|---|
java.lang.Object |
getInputParameter(DynamoHttpServletRequest pReq,
ParameterName pInputParamter)
Gets the input parameter values. |
ReturnTools |
getReturnTools()
Returns the returnTools. |
protected double |
getTotalLineItemAdjustments(java.util.Collection pItemCostAdjustments)
returns the total adjustments on amount, order discount share and manual adjustment share. |
protected boolean |
isRenderLineItemAdjustments(java.util.Collection pItemCostAdjustments)
determines if the collection of adjustments are rendered as a non-return item. |
protected void |
renderNonReturnItemParams(ReturnRequest pReturnRequest,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Loop over the non return item cost adjustments |
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Determine if the current order contains a return request or returnRequestId
contains a valid return request. |
protected void |
setOutputParamsForNonReturnItem(CommerceItem pCommerceItem,
ShippingGroup pShippingGroup,
java.util.Collection pItemCostAdjustments,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Sets all the output parameters for the given "non-return item" |
void |
setReturnTools(ReturnTools pReturnTools)
Sets the returnTools. |
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 RETURN_REQUEST
public static final ParameterName RETURN_DETAIL
public static final ParameterName OUTPUT_START
public static final ParameterName OUTPUT_END
public static final ParameterName OUTPUT_EMPTY
public static final java.lang.String COMMERCEITEM
public static final java.lang.String SHIPPINGGROUP
public static final java.lang.String QUANTITY_ADJUSTED
public static final java.lang.String ITEM_COST_ADJUSTMENTS
public static final java.lang.String TOTAL_ADJUSTMENT
public static final java.lang.String TOTAL_AMOUNT_ADJUSTMENT
public static final java.lang.String TOTAL_ORDERDISCOUNT_ADJUSTMENT
public static final java.lang.String TOTAL_MANUALADJUSTMENT_ADJUSTMENT
public static final java.lang.String TOTAL_TAX_ADJUSTMENT
public static final java.lang.String TOTAL_SHIPPING_ADJUSTMENT
protected ReturnTools mReturnTools
Constructor Detail |
---|
public NonReturnItemDetailsDroplet()
Method Detail |
---|
public ReturnTools getReturnTools()
public void setReturnTools(ReturnTools pReturnTools)
pReturnTools
- public void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
returnRequestId
contains a valid return request. If there is a return request, this method sets the true output parameter
otherwise serves the false parameter.
service
in class DynamoServlet
pRequest
- the HTTP requestpResponse
- the HTTP 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.public java.lang.Object getInputParameter(DynamoHttpServletRequest pReq, ParameterName pInputParamter)
DynamoHttpServletRequest
- String
-
protected void renderNonReturnItemParams(ReturnRequest pReturnRequest, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
pReturnRequest
- pRequest
- pResponse
-
java.io.IOException
javax.servlet.ServletException
protected void setOutputParamsForNonReturnItem(CommerceItem pCommerceItem, ShippingGroup pShippingGroup, java.util.Collection pItemCostAdjustments, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pCommerceItem
- the commerce itempShippingGroup
- the shipping group to which the item has a relationshippItemCostAdjustments
- the collection of adjustments that reference the given item/shipping group relationshippRequest
- pResponse
- protected double getTotalLineItemAdjustments(java.util.Collection pItemCostAdjustments)
If the item doesn't have these types of adjustments then it is not itemized in the non-return item details.
pItemCostAdjustments
-
protected boolean isRenderLineItemAdjustments(java.util.Collection pItemCostAdjustments)
returns true if the total line item adjustments don't total 0.
pItemCostAdjustments
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |