Class ItemChoiceCategory
java.lang.Object
com.broadleafcommerce.catalog.domain.product.commerce.ItemChoiceCategory
- All Implemented Interfaces:
Serializable
A structure containing the details of an
ItemChoice
targeting a
category
useful for a commerce-facing product
details page.- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
ConstructorDescriptionItemChoiceCategory
(String id, String name, String productMembershipRule, org.springframework.data.domain.Page<ProductDetails> products) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getId()
The ID of the category.getName()
The name of the category.The rule string used to check if a related product is a member of this category.org.springframework.data.domain.Page<ProductDetails>
APage
ofProducts
for the category to choose from.int
hashCode()
void
The ID of the category.void
The name of the category.void
setProductMembershipRule
(String productMembershipRule) The rule string used to check if a related product is a member of this category.void
setProducts
(org.springframework.data.domain.Page<ProductDetails> products) APage
ofProducts
for the category to choose from.toString()
-
Constructor Details
-
ItemChoiceCategory
public ItemChoiceCategory(String id, String name, String productMembershipRule, org.springframework.data.domain.Page<ProductDetails> products) -
ItemChoiceCategory
public ItemChoiceCategory()
-
-
Method Details
-
getId
The ID of the category.- Returns:
- The ID of the category.
-
getName
The name of the category.- Returns:
- The name of the category.
-
getProductMembershipRule
The rule string used to check if a related product is a member of this category. Only applies when this category'sproduct membership type
isCategoryProductMembershipType.RULE_BASED
.- Returns:
- the expression used to evaluate a related product's membership in this category
- See Also:
-
getProducts
APage
ofProducts
for the category to choose from.- Returns:
- A
Page
ofProducts
for the category to choose from.
-
setId
The ID of the category.- Parameters:
id
- The ID of the category.
-
setName
The name of the category.- Parameters:
name
- The name of the category.
-
setProductMembershipRule
The rule string used to check if a related product is a member of this category. Only applies when this category'sproduct membership type
isCategoryProductMembershipType.RULE_BASED
.- Parameters:
productMembershipRule
- an expression based off ofProduct
criteria- See Also:
-
setProducts
APage
ofProducts
for the category to choose from.- Parameters:
products
- APage
ofProducts
for the category to choose from.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-