Class IssueCouponActionTaskCmdImpl

    • Field Detail


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

        public static final java.lang.String CLASSNAME
        The name of this class.
        See Also:
        Constant Field Values

        public static final java.lang.String PARAM_PROMOTION_ID
        Constant representing the promotion ID name-value-pair.
        See Also:
        Constant Field Values
    • Constructor Detail

      • IssueCouponActionTaskCmdImpl

        public IssueCouponActionTaskCmdImpl()
        This method is the default constructor. It currently performs no actions.
    • Method Detail

      • getMemberIdToIssueCoupon

        public java.lang.Long getMemberIdToIssueCoupon()
        This method returns the member ID to whom to issue the coupon. The default implementation gets the member ID of the current user from the context. A customization could override this method to issue the coupon to a different customer, for example, to issue the coupon to a customer who referred this customer.
        This method returns a member ID to whom to issue the coupon. If null is returned, then no coupon will be issued.
      • performExecute

        public void performExecute()
        This method issue coupons to the shopper. If the shopper is GENERIC USER, this action will be ignored.
        Specified by:
        performExecute in interface
        performExecute in class MarketingCampaignElementTaskCmdImpl
      • validateParameters

        public java.util.List validateParameters(java.util.Map elementParameters)
        This method validates that all the required name value pairs have been set for the campaign element. It checks for promotionId.
        Specified by:
        validateParameters in interface MarketingCampaignElementTaskCmd
        validateParameters in class MarketingCampaignElementTaskCmdImpl
        elementParameters - The name value pairs for this element.
        This method returns a list of ApplicationError exceptions that contains any validation errors. The list may be empty or be null.