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_TYPECONFIG_GROUPING_TRANSFER_ORDER, CONFIG_PROPERTY_ACCESS_PROFILE, CONFIG_PROPERTY_EVENTdefaultCommandClassName, 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, setOrderIdgetInventorySystemaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterspublic 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 ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class ProcessOrderSubmitEventCmdImplECExceptionpublic 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