|
|||||||||
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.droplet.EmptyFormHandler atg.droplet.GenericFormHandler atg.commerce.order.purchase.PurchaseProcessFormHandler atg.commerce.csr.returns.BaseReturnFormHandler
public class BaseReturnFormHandler
This formhandler provides the basic operations needed to complete a merchandise return.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected java.lang.String |
mApplyRefundsErrorURL
|
protected java.lang.String |
mApplyRefundsSuccessURL
|
protected java.lang.String |
mCancelReturnRequestErrorURL
|
protected java.lang.String |
mCancelReturnRequestSuccessURL
|
protected java.lang.String |
mConfirmReturnErrorURL
|
protected java.lang.String |
mCreateReturnRequestPipelineChainId
|
protected atg.commerce.csr.returns.ProcessName |
mCreateReturnRequestProcessName
|
protected java.lang.String |
mOriginOfReturn
|
protected java.lang.String |
mReplacementOrderSalesChannel
|
protected ReturnManager |
mReturnManager
|
protected java.lang.String |
mReturnOrderId
|
protected ReturnRequest |
mReturnRequest
|
protected boolean |
mSelectAllItems
|
java.lang.String |
mSelectAllItemsReturnReason
|
protected java.lang.String |
mSelectItemsErrorURL
|
protected atg.commerce.csr.returns.ProcessName |
mSelectItemsProcessName
|
protected java.lang.String |
mSelectItemsSuccessURL
|
static java.lang.String |
MSG_ERROR_APPLYING_SELECTED_ITEMS
|
static java.lang.String |
MSG_ERROR_CONFIRMING_RETURN_REQUEST
|
static java.lang.String |
MSG_ERROR_WHILE_CREATING_RETURN_REQUEST
Message id statics |
protected java.util.List<RefundMethod> |
mSortedRefundMethodList
|
Fields inherited from class atg.commerce.order.purchase.PurchaseProcessFormHandler |
---|
LOCK_NAME_ATTRIBUTE_NAME, PARAM_TRANSACTION_CREATED, PARAM_VALUE_TRUE |
Fields inherited from class atg.droplet.GenericFormHandler |
---|
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS |
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 | |
---|---|
BaseReturnFormHandler()
|
Method Summary | |
---|---|
void |
applyRefunds(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Executes the given pipeline to validate the refund method allocations. |
void |
cancelReturnRequest(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method cancels the active return request by nulling out the ReturnRequest in the OrderHolder's returnRequest property. |
boolean |
confirmReturn(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Confirms the return request |
void |
createReturnRequest(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Creates a new return request for the orderId returned by getReturnOrderId()
and puts it in the OrderHolder's returnRequest property. |
protected java.util.Map |
generateApplyRefundAllocationsExtraParameters()
Generates the extra parameter for the apply refund allocations pipeline. |
protected java.util.Map |
generateConfirmExtraParameters()
Called to generate the extra parameter Map that is passed to the confirmation pipeline |
protected java.util.Map |
generateCreateReturnRequestExtraParameters()
Generates the extra parameter for the create return request pipeline. |
protected java.util.Map |
generateSelectItemsExtraParameters()
Called to generate the extra parameter Map that is passed to the confirmation pipeline |
java.lang.String |
getApplyRefundsErrorURL()
|
java.lang.String |
getApplyRefundsSuccessURL()
|
java.lang.String |
getCancelReturnRequestErrorURL()
Returns the cancelReturnRequestErrorURL. |
java.lang.String |
getCancelReturnRequestSuccessURL()
Returns the cancelReturnRequestSuccessURL. |
java.lang.String |
getConfirmReturnErrorURL()
|
java.lang.String |
getConfirmReturnSuccessURL()
|
java.lang.String |
getCreateReturnRequestErrorURL()
|
java.lang.String |
getCreateReturnRequestPipelineChainId()
|
atg.commerce.csr.returns.ProcessName |
getCreateReturnRequestProcessName()
This value is used to set the process name when creating a new ReturnRequest. |
java.lang.String |
getCreateReturnRequestSuccessURL()
|
java.util.List<RefundMethod> |
getModifiableRefundMethodList()
Returns a filtered List of the RefundMethods to remove the replacement order store credit refund method. |
java.lang.String |
getOriginOfReturn()
This origin value is used to set the originOfReturn property
of the ReturnRequest when a return is created. |
void |
getOriginOfReturn(java.lang.String pOriginOfReturn)
|
java.util.List |
getReasonCodes()
Retrieve a list of reason codes |
java.lang.String |
getReplacementOrderSalesChannel()
Returns the salesChannel. |
ReturnManager |
getReturnManager()
Returns the return manager object |
java.lang.String |
getReturnOrderId()
This property specifies the order id for which the ReturnRequest will be created by {@link #createReturnRequest(DynamoHttpServletRequest, DynamoHttpServletResponse) |
ReturnRequest |
getReturnRequest()
Returns the current return request from the OrderHolder |
java.lang.String |
getSelectAllItemsReturnReason()
Returns the reason code used for returning all the items in the order. |
java.lang.String |
getSelectItemsErrorURL()
|
atg.commerce.csr.returns.ProcessName |
getSelectItemsProcessName()
This value is used to set the process name on the ReturnRequest prior to applying the selected ReturnItems. |
java.lang.String |
getSelectItemsSuccessURL()
|
java.util.List<RefundMethod> |
getSortedRefundMethodList()
This method takes the #getReturnRequest().getRefundMethodList() and sorts
the refund method based on "refundType" property. |
boolean |
handleApplyRefunds(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
handler for applying the refund method allocations |
boolean |
handleCancelReturnRequest(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method cancels the active return request |
boolean |
handleConfirmReturn(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Confirms a return request |
boolean |
handleCreateReturnRequest(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
|
boolean |
handleSelectItems(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Selects Items for return |
boolean |
isSelectAllItems()
If true, all returnable items are automatically selected for return. |
void |
postApplyRefunds(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This is called after all processing is done by the handleApplyRefunds method. |
void |
postCancelReturnRequest(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method is called after all processing is done by the handleCancelReturnRequest method. |
void |
postConfirmReturn(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This is called after all processing is done by the handleConfirmReturn method. |
void |
postCreateReturnRequest(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Execute after creating the new ReturnRequest |
void |
postSelectItems(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This is called after any processing is done by the handleSelectItems method. |
void |
preApplyRefunds(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This is called before any processing is done by the handleApplyRefunds method. |
void |
preCancelReturnRequest(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method is called before any processing is done by the handleCancelReturnRequest method. |
void |
preConfirmReturn(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This is called before any processing is done by the handleConfirmReturn method. |
void |
preCreateReturnRequest(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Executed prior to creating the ReturnRequest |
void |
preSelectItems(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This is called before any processing is done by the handleSelectItems method. |
void |
rollbackTransaction()
This method is used to roll-back the current transaction. |
protected void |
selectAllReturnItems(ReturnRequest pReturnRequest,
java.lang.String pReturnReason)
Selects all returnable items for return by setting their quantityToReturn and returnReason values. |
void |
selectItems(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Processes the selected items for the return request |
void |
setApplyRefundsErrorURL(java.lang.String pApplyRefundsErrorURL)
|
void |
setApplyRefundsSuccessURL(java.lang.String pApplyRefundsSuccessURL)
|
void |
setCancelReturnRequestErrorURL(java.lang.String pCancelReturnRequestErrorURL)
Sets the cancelReturnRequestErrorURL. |
void |
setCancelReturnRequestSuccessURL(java.lang.String pCancelReturnRequestSuccessURL)
Sets the cancelReturnRequestSuccessURL. |
void |
setConfirmReturnErrorURL(java.lang.String pConfirmReturnErrorURL)
Sets URL to go to after an error occurs in handleConfirmReturn |
void |
setConfirmReturnSuccessURL(java.lang.String pConfirmReturnSuccessURL)
Sets URL to go to after handleConfirmReturn successfully runs. |
void |
setCreateReturnRequestErrorURL(java.lang.String pCreateReturnRequestErrorURL)
Sets URL to go to after an error occurs in handleCreateReturnRequest |
void |
setCreateReturnRequestPipelineChainId(java.lang.String pCreateReturnRequestPipelineChainId)
|
void |
setCreateReturnRequestProcessName(atg.commerce.csr.returns.ProcessName pCreateReturnRequestProcessName)
|
void |
setCreateReturnRequestSuccessURL(java.lang.String pCreateReturnRequestSuccessURL)
Sets URL to go to after handleCreateReturnRequest successfully runs. |
void |
setReplacementOrderSalesChannel(java.lang.String pSalesChannel)
Sets the salesChannel. |
void |
setReturnManager(ReturnManager pReturnManager)
sets the return manager object |
void |
setReturnOrderId(java.lang.String pReturnOrderId)
|
void |
setReturnRequest(ReturnRequest pReturnRequest)
Sets the current return request |
void |
setSelectAllItems(boolean pSelectAllItems)
|
void |
setSelectAllItemsReturnReason(java.lang.String pSelectAllItemsReturnReason)
|
void |
setSelectItemsErrorURL(java.lang.String pSelectItemsErrorURL)
Sets URL to go to after an error occurs in handleSelectItems |
void |
setSelectItemsProcessName(atg.commerce.csr.returns.ProcessName pSelectItemsProcessName)
|
void |
setSelectItemsSuccessURL(java.lang.String pSelectItemsSuccessURL)
Sets URL to go to after handleSelectItems successfully runs. |
Methods inherited from class atg.droplet.EmptyFormHandler |
---|
afterGet, beforeGet |
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 java.lang.String MSG_ERROR_WHILE_CREATING_RETURN_REQUEST
public static final java.lang.String MSG_ERROR_CONFIRMING_RETURN_REQUEST
public static final java.lang.String MSG_ERROR_APPLYING_SELECTED_ITEMS
protected java.lang.String mReplacementOrderSalesChannel
protected java.lang.String mOriginOfReturn
protected ReturnManager mReturnManager
protected ReturnRequest mReturnRequest
protected java.lang.String mCancelReturnRequestErrorURL
protected java.lang.String mCancelReturnRequestSuccessURL
protected java.lang.String mApplyRefundsErrorURL
protected java.lang.String mApplyRefundsSuccessURL
protected java.lang.String mConfirmReturnErrorURL
protected java.lang.String mCreateReturnRequestPipelineChainId
protected java.lang.String mSelectItemsErrorURL
protected java.lang.String mSelectItemsSuccessURL
protected atg.commerce.csr.returns.ProcessName mSelectItemsProcessName
protected atg.commerce.csr.returns.ProcessName mCreateReturnRequestProcessName
protected java.lang.String mReturnOrderId
protected boolean mSelectAllItems
public java.lang.String mSelectAllItemsReturnReason
protected java.util.List<RefundMethod> mSortedRefundMethodList
Constructor Detail |
---|
public BaseReturnFormHandler()
Method Detail |
---|
public java.lang.String getReplacementOrderSalesChannel()
public void setReplacementOrderSalesChannel(java.lang.String pSalesChannel)
pSalesChannel
- public java.lang.String getOriginOfReturn()
originOfReturn
property
of the ReturnRequest
when a return is created.
public void getOriginOfReturn(java.lang.String pOriginOfReturn)
public void setReturnManager(ReturnManager pReturnManager)
pReturnManager
- the return managerpublic ReturnManager getReturnManager()
public void setReturnRequest(ReturnRequest pReturnRequest)
pReturnRequest
- the current return requestpublic ReturnRequest getReturnRequest()
public java.lang.String getCancelReturnRequestErrorURL()
public void setCancelReturnRequestErrorURL(java.lang.String pCancelReturnRequestErrorURL)
pCancelReturnRequestErrorURL
- public java.lang.String getCancelReturnRequestSuccessURL()
public void setCancelReturnRequestSuccessURL(java.lang.String pCancelReturnRequestSuccessURL)
pCancelReturnRequestSuccessURL
- public java.lang.String getApplyRefundsErrorURL()
public void setApplyRefundsErrorURL(java.lang.String pApplyRefundsErrorURL)
pApplyRefundsErrorURL
- The applyRefundsErrorURL to set.public java.lang.String getApplyRefundsSuccessURL()
public void setApplyRefundsSuccessURL(java.lang.String pApplyRefundsSuccessURL)
pApplyRefundsSuccessURL
- The applyRefundsSuccessURL to set.public void setConfirmReturnErrorURL(java.lang.String pConfirmReturnErrorURL)
pConfirmReturnErrorURL
- the URL to go to after an error
occurs in handleConfirmReturnpublic java.lang.String getConfirmReturnErrorURL()
public void setConfirmReturnSuccessURL(java.lang.String pConfirmReturnSuccessURL)
pConfirmReturnSuccessURL
- the URL to go to after
handleConfirmReturn successfully runs.public java.lang.String getConfirmReturnSuccessURL()
public void setCreateReturnRequestErrorURL(java.lang.String pCreateReturnRequestErrorURL)
pCreateReturnRequestErrorURL
- the URL to go to after an error
occurs in handleCreateReturnRequestpublic java.lang.String getCreateReturnRequestErrorURL()
public void setCreateReturnRequestSuccessURL(java.lang.String pCreateReturnRequestSuccessURL)
pCreateReturnRequestSuccessURL
- the URL to go to after
handleCreateReturnRequest successfully runs.public java.lang.String getCreateReturnRequestSuccessURL()
public java.lang.String getCreateReturnRequestPipelineChainId()
public void setCreateReturnRequestPipelineChainId(java.lang.String pCreateReturnRequestPipelineChainId)
public void setSelectItemsErrorURL(java.lang.String pSelectItemsErrorURL)
pSelectItemsErrorURL
- the URL to go to after an error
occurs in handleSelectItemspublic java.lang.String getSelectItemsErrorURL()
public void setSelectItemsSuccessURL(java.lang.String pSelectItemsSuccessURL)
pSelectItemsSuccessURL
- the URL to go to after
handleSelectItems successfully runs.public java.lang.String getSelectItemsSuccessURL()
public atg.commerce.csr.returns.ProcessName getSelectItemsProcessName()
public void setSelectItemsProcessName(atg.commerce.csr.returns.ProcessName pSelectItemsProcessName)
public atg.commerce.csr.returns.ProcessName getCreateReturnRequestProcessName()
public void setCreateReturnRequestProcessName(atg.commerce.csr.returns.ProcessName pCreateReturnRequestProcessName)
public java.lang.String getReturnOrderId()
public void setReturnOrderId(java.lang.String pReturnOrderId)
public boolean isSelectAllItems()
handleSelectItems
handler
to automatically select all items in the order for return.
Default is false
public void setSelectAllItems(boolean pSelectAllItems)
public java.lang.String getSelectAllItemsReturnReason()
This value is propragated to the reasonCode on all return items when using the option to return all the items in the order.
public void setSelectAllItemsReturnReason(java.lang.String pSelectAllItemsReturnReason)
public java.util.List getReasonCodes()
public boolean handleCreateReturnRequest(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void preCreateReturnRequest(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
public void postCreateReturnRequest(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
public void createReturnRequest(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
getReturnOrderId()
and puts it in the OrderHolder's returnRequest property.
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
ReturnManager.createReturnRequest(String, ProcessName, Map)
,
getCreateReturnRequestProcessName()
protected java.util.Map generateCreateReturnRequestExtraParameters()
public void preSelectItems(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type 'DynamoHttpServletRequest'pResponse
- a value of type 'DynamoHttpServletResponse'
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurspublic boolean handleSelectItems(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
selectItems(DynamoHttpServletRequest, DynamoHttpServletResponse)
public void postSelectItems(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type 'DynamoHttpServletRequest'pResponse
- a value of type 'DynamoHttpServletResponse'
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurspublic void selectItems(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
If isSelectAllItems
is true, all items are automatically
selected for return using the return reason provide by the
selectAllItemsReturnReason
property.
pRequest
- pResponse
-
java.io.IOException
javax.servlet.ServletException
ReturnManager.applySelectedItems(ReturnRequest, ProcessName, Map)
protected java.util.Map generateSelectItemsExtraParameters()
public boolean handleConfirmReturn(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if there was an error while executing the code
java.io.IOException
- if there was an error with servlet iopublic void preConfirmReturn(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type 'DynamoHttpServletRequest'pResponse
- a value of type 'DynamoHttpServletResponse'
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurspublic void postConfirmReturn(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type 'DynamoHttpServletRequest'pResponse
- a value of type 'DynamoHttpServletResponse'
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurspublic boolean confirmReturn(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if there was an error while executing the code
java.io.IOException
- if there was an error with servlet ioReturnManager.confirmReturn(ReturnRequest, Map)
protected java.util.Map generateConfirmExtraParameters()
public void rollbackTransaction()
public java.util.List<RefundMethod> getSortedRefundMethodList()
#getReturnRequest().getRefundMethodList()
and sorts
the refund method based on "refundType" property.
#getReturnRequest().getRefundMethodList()
is sorted and returned.public java.util.List<RefundMethod> getModifiableRefundMethodList()
This property can be used to build the page that allows the refund method allocations to be changed manually.
public void preApplyRefunds(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type 'DynamoHttpServletRequest'pResponse
- a value of type 'DynamoHttpServletResponse'
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurspublic boolean handleApplyRefunds(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if there was an error while executing the code
java.io.IOException
- if there was an error with servlet iopublic void postApplyRefunds(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type 'DynamoHttpServletRequest'pResponse
- a value of type 'DynamoHttpServletResponse'
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurspublic void applyRefunds(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if there was an error while executing the code
java.io.IOException
- if there was an error with servlet ioReturnManager.applyRefundMethodAllocations(ReturnRequest, Map)
protected java.util.Map generateApplyRefundAllocationsExtraParameters()
public void preCancelReturnRequest(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type 'DynamoHttpServletRequest'pResponse
- a value of type 'DynamoHttpServletResponse'
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurspublic void postCancelReturnRequest(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type 'DynamoHttpServletRequest'pResponse
- a value of type 'DynamoHttpServletResponse'
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurspublic boolean handleCancelReturnRequest(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
This method cancels the active return request
pRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if there was an error while executing the code
java.io.IOException
- if there was an error with servlet iopublic void cancelReturnRequest(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
This method cancels the active return request by nulling out the ReturnRequest in the
OrderHolder's returnRequest
property.
pRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if there was an error while executing the code
java.io.IOException
- if there was an error with servlet ioprotected void selectAllReturnItems(ReturnRequest pReturnRequest, java.lang.String pReturnReason)
quantityToReturn
and returnReason
values.
quantityToReturn
is set to the item's quantityAvailable
.
returnReason
is set to the form's selectAllItemsReturnReason
.
pReturnRequest
- pReturnReason
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |