com.ibm.commerce.price.beans

Class DynamicKitPredefinedConfigurationDataBean

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


    public class DynamicKitPredefinedConfigurationDataBean
    extends java.lang.Object
    implements com.ibm.commerce.beans.SmartDataBean
    Databean that displays a predefined configuration of a dynamic kit.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      The IBM copyright string.
      • Fields inherited from interface com.ibm.commerce.beans.DataBean

        emptyString
    • Field Detail

      • COPYRIGHT

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

      • DynamicKitPredefinedConfigurationDataBean

        public DynamicKitPredefinedConfigurationDataBean()
        Constructor.
    • Method Detail

      • getCommandContext

        public com.ibm.commerce.command.CommandContext getCommandContext()
        Gets the command context used by the bean.
        Specified by:
        getCommandContext in interface com.ibm.commerce.beans.SmartDataBean
        Returns:
        The command context.
      • getComponents

        public DynamicKitPredefinedConfigurationComponentDataBean[] getComponents()
        Returns an array of DynamicKitPredefinedConfigurationComponentDataBean objects representing the components of the predefined configuration.
        Returns:
        The array of component beans.
      • getConfigurationId

        public java.lang.String getConfigurationId()
        Gets the configuration ID assigned to the predefined configuration.
        Returns:
        The configuration ID assigned to the predefined configuration.
      • getDynamicKitCatalogEntryId

        public java.lang.Long getDynamicKitCatalogEntryId()
        Gets the dynamic kit catalog entry ID.
        Returns:
        The dynamic kit catalog entry ID.
      • getDynamicKitPredefinedConfigurationId

        public java.lang.Long getDynamicKitPredefinedConfigurationId()
        Gets the dynamic kit predefined configuration ID.
        Returns:
        The dynamic kit predefined configuration ID.
      • getLongDescription

        public java.lang.String getLongDescription()
        Gets the long description of the dynamic kit predefined configuration
        Returns:
        The long description of the dynamic kit predefined configuration.
      • getRequestProperties

        public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
        Gets the request properties used by the bean.
        Specified by:
        getRequestProperties in interface com.ibm.commerce.beans.InputDataBean
        Returns:
        The request properties used by the bean.
      • getShortDescription

        public java.lang.String getShortDescription()
        Gets the short description of the dynamic kit predefined configuration.
        Returns:
        The short description of the dynamic kit predefined configuration.
      • getStartingPrice

        public MonetaryAmount getStartingPrice()
        Gets the price of the predefined configuration.
        Returns:
        The price of the predefined configuration, or null if no price was found.
      • isComplete

        public boolean isComplete()
        Gets a boolean representing whether or not the predefined configuration is complete. That is, it can be added to an order without the need of a configurator.
        Returns:
        True if the configuration is complete, false otherwise.
      • populate

        public void populate()
                      throws java.lang.Exception
        Populates the databean with the predefined configuration referenced by the ID set on the bean.
        Specified by:
        populate in interface com.ibm.commerce.beans.SmartDataBean
        Throws:
        java.lang.Exception - Thrown if there was an error retrieving the predefined configuration information.
      • setCommandContext

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

        public void setDynamicKitCatalogEntryId(java.lang.Long dynamicKitCatalogEntryId)
        Sets the dynamic kit catalog entry ID used to lookup the bean
        Parameters:
        dynamicKitCatalogEntryId - the dynamic kit catalog entry ID
      • setDynamicKitPredefinedConfigurationId

        public void setDynamicKitPredefinedConfigurationId(java.lang.Long dynamicKitPredefinedConfigurationId)
        Sets the dynamic kit predefined configuration ID used to lookup the bean.
        Parameters:
        dynamicKitPredefinedConfigurationId - The dynamic kit predefined configuration ID.
      • setRequestProperties

        public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty requestProperties)
        Sets the request properties for the bean.
        Specified by:
        setRequestProperties in interface com.ibm.commerce.beans.InputDataBean
        Parameters:
        The - request properties.