com.ibm.commerce.marketing.databeans

Class PromoCodeListDataBean

    • Constructor Detail

      • PromoCodeListDataBean

        public PromoCodeListDataBean()
        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 aOrderId)
        Sets the order ID.
        Parameters:
        aOrderId - The new order ID.
      • getPromoCodes

        public java.lang.String[] getPromoCodes()
        Deprecated. please use getCodes instead
        Returns a list of retrieved promotion codes for the current order.
        Returns:
        A list of promotion codes.
      • populate

        public void populate()
                      throws java.lang.Exception
        Loads data into the databean when the DataBeanmanager.activate() runs.
        Specified by:
        populate in interface SmartDataBean
        Overrides:
        populate in class SmartDataBeanImpl
        Throws:
        java.lang.Exception - This method should never be thrown because there is no data retrieved to populate the data bean.
        See Also:
        SmartDataBean.populate()
      • getCodes

        public PromotionCodeData[] getCodes()
        Returns the promotion code constructs.
        Returns:
        An array of PromotionCode constructs.