Class PromotionalCategoryProduct

java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.PromotionalCategoryProduct
All Implemented Interfaces:
Priceable, Serializable

public class PromotionalCategoryProduct extends Object implements Serializable, Priceable
A structure containing all of the info necessary for a category's related promotional products shown on a commerce-facing app (as opposed to a PIM UI).
Author:
Marie Standeven (marieStandeven)
See Also:
  • Constructor Details

    • PromotionalCategoryProduct

      public PromotionalCategoryProduct()
  • Method Details

    • addAttribute

      public void addAttribute(String name, Object value)
      Takes in any additional attributes passed in the request not matching any defined properties.
      Parameters:
      name - Name of the additional attribute
      value - Value of the additional attribute
    • getAttribute

      public Map<String,Object> getAttribute()
      Return any additional attributes passed in the request not matching any defined properties.
      Returns:
      any additional attributes passed in the request not matching any defined properties.
    • getPriceInfo

      public com.broadleafcommerce.pricing.client.domain.PriceInfo getPriceInfo()
      Description copied from interface: Priceable
      Retrieves the PriceInfo on the entity.
      Specified by:
      getPriceInfo in interface Priceable
      Returns:
      The PriceInfo on the entity.
    • setPriceInfo

      public void setPriceInfo(com.broadleafcommerce.pricing.client.domain.PriceInfo priceInfo)
      Description copied from interface: Priceable
      Sets the PriceInfo on the entity.
      Specified by:
      setPriceInfo in interface Priceable
      Parameters:
      priceInfo - The PriceInfo to set.
    • getPromotionalProduct

      public Product getPromotionalProduct()
      The product to promote.
      Returns:
      the promotional product
    • getAttributes

      public Map<String,Object> getAttributes()
      Map holding any additional attributes passed in the request not matching any defined properties.
    • setPromotionalProduct

      public void setPromotionalProduct(Product promotionalProduct)
      The product to promote.
      Parameters:
      promotionalProduct - the promotional product
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      Map holding any additional attributes passed in the request not matching any defined properties.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object