Class RelatedProductDTO
java.lang.Object
org.broadleafcommerce.core.catalog.domain.RelatedProductDTO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the categoryId for which the system should find related products.Returns the productId for which the system should find related products.The number of results to return.getType()Returns the type of relationship that is desired.booleanReturns whether cumulative results are desired.voidsetCategoryId(Long categoryId) Sets the categoryId for which the system should find related products.voidsetCumulativeResults(boolean cumulativeResults) Sets whether cumulative results are desired.voidsetProductId(Long productId) Sets the productId for which the system should find related products.voidsetQuantity(Integer quantity) The number of results to return.voidSets the type of relationship that is desired.
-
Constructor Details
-
RelatedProductDTO
public RelatedProductDTO()
-
-
Method Details
-
getCategoryId
Returns the categoryId for which the system should find related products. -
setCategoryId
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
Returns the productId for which the system should find related products. -
setProductId
Sets the productId for which the system should find related products.- Parameters:
productId-
-
getType
Returns the type of relationship that is desired.- Returns:
- See Also:
-
setType
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
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
The number of results to return. Null indicates to return all results.- Parameters:
quantity-
-