java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.order.commands.OrderProfileUpdateCmdImpl
Creates or updates customer's default billing and shipping addresses, shipping mode and payment information.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.order.commands. OrderProfileUpdateCmd |
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
OrderProfileUpdateCmdImpl() |
Method Summary | |
---|---|
java.lang.Long |
getBillingAddress() Gets the the default address to bill. |
java.util.Hashtable |
getPaymentInfo() Gets the default payment information. |
java.lang.Long |
getShippingAddress() Gets the default address to ship. |
java.lang.Integer |
getShippingMode() Gets the default shipping mode. |
java.lang.Integer |
getStoreEntityId() Gets store entity id. |
java.lang.String |
getUrl() Gets redirection URL called after the command completes successfully. |
protected
java.lang.Integer |
parseStoreEntityId(
TypedProperty aReqParms) Checks to see whether the store entity id in the TypedProperty is valid. |
void |
performExecute() Default order profile consists of one or more of the following: - shipping address - billing address - shipping mode - payment information. |
void |
reset() Resets the instance variables. |
void |
setBillingAddress(java.lang.Long anBillingAddress) Sets the the default address to bill. |
void |
setPaymentInfo(java.util.Hashtable ahshPaymentInfo) Sets the default payment information. |
void |
setRequestProperties(
TypedProperty aReqParms) Sets the request properties. |
void |
setShippingAddress(java.lang.Long anShippingAddress) Sets the default address to ship. |
void |
setShippingMode(java.lang.Integer newShippingMode) Sets the default shipping mode. |
void |
setStoreEntityId(java.lang.Integer newStoreEntityId) Sets the store entity id. |
void |
setUrl(java.lang.String astrUrl) Sets redirection URL. |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public OrderProfileUpdateCmdImpl()
Method Detail |
---|
public java.lang.Long getBillingAddress()
public java.util.Hashtable getPaymentInfo()
public java.lang.Long getShippingAddress()
public java.lang.Integer getShippingMode()
public java.lang.Integer getStoreEntityId()
public java.lang.String getUrl()
protected java.lang.Integer parseStoreEntityId(TypedProperty aReqParms) throws ECApplicationException, ECSystemException
aReqParms
- request properties.
ECApplicationException
ECSystemException
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void reset()
reset
in class
AbstractECTargetableCommand
public void setBillingAddress(java.lang.Long anBillingAddress)
setBillingAddress
in interface
OrderProfileUpdateCmd
anBillingAddress
- java.lang.Long - billing address
identifierpublic void setPaymentInfo(java.util.Hashtable ahshPaymentInfo)
setPaymentInfo
in interface
OrderProfileUpdateCmd
ahshPaymentInfo
- java.util.Hashtable - payment name-value
pairs.public void setRequestProperties(TypedProperty aReqParms) throws ECException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
aReqParms
- request properties.ECException
public void setShippingAddress(java.lang.Long anShippingAddress)
setShippingAddress
in interface
OrderProfileUpdateCmd
anShippingAddress
- java.lang.Long - shipping address
identifierpublic void setShippingMode(java.lang.Integer newShippingMode)
setShippingMode
in interface
OrderProfileUpdateCmd
newShippingMode
- java.lang.Integer - shipping mode
identifierpublic void setStoreEntityId(java.lang.Integer newStoreEntityId)
newStoreEntityId
- store entity id.public void setUrl(java.lang.String astrUrl)
astrUrl
- URL.