com.ibm.commerce.marketing.databeans

Class CouponListByOrderDataBean

    • Constructor Detail

      • CouponListByOrderDataBean

        public CouponListByOrderDataBean()
        Constructor
    • Method Detail

      • setCommandContext

        public void setCommandContext(CommandContext cc)
        Sets the command context associated with the data bean. This is called by the DataBeanManager during the activate method.
        Specified by:
        setCommandContext in interface SmartDataBean
        Overrides:
        setCommandContext in class SmartDataBeanImpl
        Parameters:
        cc - The command context passed to the JSP page that invokes this data bean.
      • setRequestProperties

        public void setRequestProperties(TypedProperty param)
        Sets the request properties associated with the data bean. This is called by the DataBeanManager during the activate method.
        Specified by:
        setRequestProperties in interface InputDataBean
        Overrides:
        setRequestProperties in class InputDataBeanImpl
        Parameters:
        param - The set of properties passed to the JSP page that invokes this data bean.
      • setOrderId

        public void setOrderId(java.lang.Long anOrderId)
        Sets the order ID.
        Parameters:
        anOrderId - The order ID.
      • getCoupons

        public com.ibm.commerce.marketing.promotion.coupon.Coupon[] getCoupons()
        Returns a list of coupons.
        Returns:
        A list of coupons
      • getDelegate

        public Protectable getDelegate()
                                throws java.lang.Exception
        Returns the order data bean with the order id set.
        Specified by:
        getDelegate in interface Delegator
        Returns:
        the order data bean.
        Throws:
        java.lang.Exception - when an error is encountered on getting the order data bean.
        See Also:
        Delegator.getDelegate()