public class GiftCenterProcessOrderSubmitEventCmdImpl extends ProcessOrderSubmitEventCmdImpl
GiftCenterProcessOrderSubmitEventCmdImpl
command is an extension
of the ProcessOrderSubmitEventCmdImpl
to handle the purchase
order creation on a submit order action.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STORE_FEATURE_NAME_GIFTREGISTRY
Constant representing the
GiftRegistry feature name. |
RECURRING_ORDER_TYPE
CONFIG_GROUPING_TRANSFER_ORDER, CONFIG_PROPERTY_ACCESS_PROFILE, CONFIG_PROPERTY_EVENT
defaultCommandClassName, NAME
Constructor and Description |
---|
GiftCenterProcessOrderSubmitEventCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
copyAddress(java.lang.Long addressId)
Copies the address from
ADDRESS table to GRADDR
table. |
void |
performExecute()
Performs the logic involved in creating the purchase order.
|
getOrderId, reset, setOrderId
getInventorySystem
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String STORE_FEATURE_NAME_GIFTREGISTRY
GiftRegistry
feature name. This
name is used in the store flex flow feature to enable gift registry.public GiftCenterProcessOrderSubmitEventCmdImpl()
public void performExecute() throws ECException
ORDERITEMGIFT
table to identify if the order item is gift item or not. If the order is
a gift item, the implementation retrieves the associated attributes such
as orderItemsId
, addressId
,
quantity
, partNumber
, partAuxKey
etc.
The address would be copied from the ADDRESS
table to the
GRADDR
table. The implementation also execute a select on
the ORDERGFTEVNT
table to populate the gift item identifier
of the gift list item. If there is no item returned, it is assumed that
the shopper purchased an item which does not belong to any gift list.
This method looks for the GiftRegistry
flex flow feature to
be enabled before performing the above mentioned operation.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class ProcessOrderSubmitEventCmdImpl
ECException
public java.lang.Long copyAddress(java.lang.Long addressId) throws ECSystemException
ADDRESS
table to GRADDR
table.addressId
- the address identifier of the gift giver in the ADDRESS
table.GRADDR
table, this will return null
if
the address not is copied.ECSystemException