Class PromotionalCategoryProductSummary

java.lang.Object
com.broadleafcommerce.catalog.domain.product.commerce.PromotionalCategoryProductSummary
All Implemented Interfaces:
Serializable

public class PromotionalCategoryProductSummary extends Object implements Serializable
A structure containing the most used subset of promotional category product information that can be used in commerce-facing product list pages or components (as opposed to a PIM UI).
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • PromotionalCategoryProductSummary

      public PromotionalCategoryProductSummary()
    • PromotionalCategoryProductSummary

      public PromotionalCategoryProductSummary(PromotionalCategoryProduct promotionalCategoryProduct, ProductSummary promotionalProduct)
  • Method Details

    • getType

      public String getType()
      Returns:
      the type of relation between the category and the related product
    • getPromotionalCategoryProduct

      public PromotionalCategoryProduct getPromotionalCategoryProduct()
    • getPromotionalProduct

      public ProductSummary getPromotionalProduct()
      The product to promote.
      Returns:
      the promotional product
    • setPromotionalCategoryProduct

      public void setPromotionalCategoryProduct(PromotionalCategoryProduct promotionalCategoryProduct)
    • setPromotionalProduct

      public void setPromotionalProduct(ProductSummary promotionalProduct)
      The product to promote.
      Parameters:
      promotionalProduct - the promotional product
    • 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
    • getId

      public String getId()
    • getCategory

      public CategoryRef getCategory()
    • getSorted

      public Boolean getSorted()
    • getPromotionMessage

      public String getPromotionMessage()
    • getContextState

      public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
    • setId

      public void setId(String id)
    • setCategory

      public void setCategory(CategoryRef category)
    • setSorted

      public void setSorted(Boolean sorted)
    • setPromotionMessage

      public void setPromotionMessage(String promotionMessage)
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)