com.ibm.commerce.price.beans

Class PriceRuleListDataBean

  • java.lang.Object
    • com.ibm.commerce.price.beans.PriceRuleListDataBean
  • All Implemented Interfaces:
    com.ibm.commerce.beans.DataBean, com.ibm.commerce.beans.InputDataBean, com.ibm.commerce.beans.SmartDataBean, java.io.Serializable


    public class PriceRuleListDataBean
    extends java.lang.Object
    implements com.ibm.commerce.beans.SmartDataBean
    This data bean populates itself with an array of PriceRuleDataBean. It invokes price rule GET service to retrieve a list of price rules which are associated with the current store and its related stores.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface com.ibm.commerce.beans.DataBean

        emptyString
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      com.ibm.commerce.command.CommandContext getCommandContext()
      Get the command context.
      java.util.List getPriceRuleList()
      Get the list of price rule logical SDO PriceRuleType.
      com.ibm.commerce.datatype.TypedProperty getRequestProperties()
      Get the request properties.
      void populate()
      Populate this data bean with the array of PriceRuleDataBean.
      void setCommandContext(com.ibm.commerce.command.CommandContext context)
      Set the command context.
      void setPriceRuleList(java.util.List prList)
      Set the list of price rule logical SDO PriceRuleType.
      void setRequestProperties(com.ibm.commerce.datatype.TypedProperty requestProperties)
      Set the request properties.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PriceRuleListDataBean

        public PriceRuleListDataBean()
    • Method Detail

      • getCommandContext

        public com.ibm.commerce.command.CommandContext getCommandContext()
        Get the command context.
        Specified by:
        getCommandContext in interface com.ibm.commerce.beans.SmartDataBean
        Returns:
        The command context.
      • getPriceRuleList

        public java.util.List getPriceRuleList()
        Get the list of price rule logical SDO PriceRuleType.
        Returns:
        The list of price rule logical SDO PriceRuleType.
      • getRequestProperties

        public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
        Get the request properties.
        Specified by:
        getRequestProperties in interface com.ibm.commerce.beans.InputDataBean
        Returns:
        The request properties.
      • populate

        public void populate()
                      throws java.lang.Exception
        Populate this data bean with the array of PriceRuleDataBean. It invokes price rule GET service to retrieve a list of price rules which are associated with the current store and its related stores.
        Specified by:
        populate in interface com.ibm.commerce.beans.SmartDataBean
        Throws:
        java.lang.Exception - If there is a problem populating the data bean with data, this is thrown.
      • setCommandContext

        public void setCommandContext(com.ibm.commerce.command.CommandContext context)
        Set the command context.
        Specified by:
        setCommandContext in interface com.ibm.commerce.beans.SmartDataBean
        Parameters:
        context - The command context.
      • setPriceRuleList

        public void setPriceRuleList(java.util.List prList)
        Set the list of price rule logical SDO PriceRuleType.
        Parameters:
        prList - The list of price rule logical SDO PriceRuleType.
      • setRequestProperties

        public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty requestProperties)
                                  throws java.lang.Exception
        Set the request properties.
        Specified by:
        setRequestProperties in interface com.ibm.commerce.beans.InputDataBean
        Parameters:
        requestProperties - The request properties.
        Throws:
        java.lang.Exception - If there is a problem when setting the request properties, throw exception.