Class RelatedProductDTO

java.lang.Object
org.broadleafcommerce.core.catalog.domain.RelatedProductDTO

public class RelatedProductDTO extends Object
  • Constructor Details

    • RelatedProductDTO

      public RelatedProductDTO()
  • Method Details

    • getCategoryId

      public Long getCategoryId()
      Returns the categoryId for which the system should find related products.
    • setCategoryId

      public void setCategoryId(Long categoryId)
      Sets the categoryId for which the system should find related products. May be ignored by implementations if an productId is also specified.
      Parameters:
      categoryId -
    • getProductId

      public Long getProductId()
      Returns the productId for which the system should find related products.
    • setProductId

      public void setProductId(Long productId)
      Sets the productId for which the system should find related products.
      Parameters:
      productId -
    • getType

      public RelatedProductTypeEnum getType()
      Returns the type of relationship that is desired.
      Returns:
      See Also:
    • setType

      public void setType(RelatedProductTypeEnum type)
      Sets the type of relationship that is desired.
      Parameters:
      type -
      See Also:
    • isCumulativeResults

      public boolean isCumulativeResults()
      Returns whether cumulative results are desired. Defaults to true.
      Returns:
    • setCumulativeResults

      public void setCumulativeResults(boolean cumulativeResults)
      Sets whether cumulative results are desired.
      Parameters:
      cumulativeResults -
    • getQuantity

      public Integer getQuantity()
      The number of results to return. The system will not look for additional results after the quantity has been met. Null indicates to return all results.
      Returns:
    • setQuantity

      public void setQuantity(Integer quantity)
      The number of results to return. Null indicates to return all results.
      Parameters:
      quantity -