com.ibm.commerce.giftregistry.commands

Class GiftRegistryExtendOrderItemProcessCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, ExtendOrderItemProcessCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class GiftRegistryExtendOrderItemProcessCmdImpl
    extends ExtendOrderItemProcessCmdImpl
    implements ExtendOrderItemProcessCmd
    This class extends ExtendOrderItemProcessCmdImpl. It adds logic to the create or update relationship between orderItem and gift registries, if the orderItems are associated a gift registry.

  • For every orderItem, if externalId is passed, the command finds the relationship entry in the ORDERITEMGIFT table based on the ID and the externalId. If it cannot find this relationship, it creates a relationship between the orderItem and the gift registry.
  • If externalId is not passed, it finds the relationship entry between the orderItem and the gift registry based on the orderItemId.
  • If the relationship entry is found or created, and if a gift message or ShipToRegistrant values are passed in, it updates them separately. If ShipToRegistrant is not passed in but addressId is passed in, update ShipToRegistrant to 0(SHIP_TO_SHOPER_CONSTANT).
See Also:
Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GiftRegistryExtendOrderItemProcessCmdImpl

        public GiftRegistryExtendOrderItemProcessCmdImpl()
    • Method Detail

      • setRequestProperties

        public void setRequestProperties(TypedProperty aRequestProperties)
                                  throws ECException
        Pass the parameters from the caller to the task command.

        Behavior:

      • Calls parent class implementation
      • Then, resolves the parameters from a gift registry
Specified by:
setRequestProperties in interface ExtendOrderItemProcessCmd
Overrides:
setRequestProperties in class ExtendOrderItemProcessCmdImpl
Parameters:
aRequestProperties - request properties.
Throws:
ECException