|
|||||||||
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.order.purchase.SaveOrderFormHandler
public class SaveOrderFormHandler
The SaveOrderFormHandler is used to save the user's current Order based on a descriptive name that the user specifies. A new empty Order is then made the user's current shopping cart. If a descriptive name for the Order is not specified, then one is created based on the user's Locale and date and time.
GenericFormHandler
,
PurchaseProcessFormHandler
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
static java.lang.String |
MSG_DUPLICATE_ORDER_DESCRIPTION
|
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 | |
---|---|
SaveOrderFormHandler()
Creates a new SaveOrderFormHandler instance. |
Method Summary | |
---|---|
protected boolean |
checkDuplicateDescription(java.lang.String pDescription)
Checks for duplicate Descriptions among the Saved orders in the OrderHolder. |
java.lang.String |
getDescription()
Return the Description property. |
java.lang.String |
getSaveOrderErrorURL()
Return the SaveOrderErrorURL property. |
java.lang.String |
getSaveOrderSuccessURL()
Return the SaveOrderSuccessURL property. |
boolean |
handleSaveOrder(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method is used to save the user's order based on the provided String description, or absent this description based on the user's Locale representing the date and time. |
void |
postSaveOrder(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Empty method that can be overriden to provide additional functionality if desired. |
void |
preSaveOrder(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Empty method that can be overriden to provide additional functionality if desired. |
protected void |
runProcessSendScenarioEvent(Order pOrder,
java.lang.String pType)
The runProcessSendScenarioEvent method sends a scenario event. |
protected void |
runProcessSendScenarioEvent(Order pOrder,
java.lang.String pType,
java.lang.String pSiteId)
The runProcessSendScenarioEvent method sends a scenario event. |
protected void |
saveOrder(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method sets the current Order's description and saves it. |
void |
setDescription(java.lang.String pDescription)
Set the Description property. |
void |
setSaveOrderErrorURL(java.lang.String pSaveOrderErrorURL)
Set the SaveOrderErrorURL property. |
void |
setSaveOrderSuccessURL(java.lang.String pSaveOrderSuccessURL)
Set the SaveOrderSuccessURL property. |
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_DUPLICATE_ORDER_DESCRIPTION
Constructor Detail |
---|
public SaveOrderFormHandler()
SaveOrderFormHandler
instance.
Method Detail |
---|
public java.lang.String getDescription()
String
valuepublic void setDescription(java.lang.String pDescription)
pDescription
- a String
valuepublic void setSaveOrderSuccessURL(java.lang.String pSaveOrderSuccessURL)
pSaveOrderSuccessURL
- a String
valuepublic java.lang.String getSaveOrderSuccessURL()
String
valuepublic void setSaveOrderErrorURL(java.lang.String pSaveOrderErrorURL)
pSaveOrderErrorURL
- a String
valuepublic java.lang.String getSaveOrderErrorURL()
String
valuepublic void preSaveOrder(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the request objectpResponse
- the response object
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurspublic void postSaveOrder(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the request objectpResponse
- the response object
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurspublic boolean handleSaveOrder(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 ioprotected void saveOrder(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a DynamoHttpServletRequest
valuepResponse
- a DynamoHttpServletResponse
value
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occursprotected boolean checkDuplicateDescription(java.lang.String pDescription)
pDescription
- a String
value
protected void runProcessSendScenarioEvent(Order pOrder, java.lang.String pType) throws RunProcessException
runProcessSendScenarioEvent
method sends a scenario event.
pOrder
- an Order
valuepType
- a String
value
RunProcessException
- if an error occursprotected void runProcessSendScenarioEvent(Order pOrder, java.lang.String pType, java.lang.String pSiteId) throws RunProcessException
runProcessSendScenarioEvent
method sends a scenario event.
pOrder
- an Order
valuepType
- a String
valuepSiteId
- The site ID associated with a scenario event
RunProcessException
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |