Class ItemChoiceCategory

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

public class ItemChoiceCategory extends Object implements 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 Details

    • ItemChoiceCategory

      public ItemChoiceCategory(String id, String name, String productMembershipRule, org.springframework.data.domain.Page<ProductDetails> products)
    • ItemChoiceCategory

      public ItemChoiceCategory()
  • Method Details

    • getId

      public String getId()
      The ID of the category.
      Returns:
      The ID of the category.
    • getName

      public String getName()
      The name of the category.
      Returns:
      The name of the category.
    • getProductMembershipRule

      public String getProductMembershipRule()
      The rule string used to check if a related product is a member of this category. Only applies when this category's product membership type is CategoryProductMembershipType.RULE_BASED.
      Returns:
      the expression used to evaluate a related product's membership in this category
      See Also:
    • getProducts

      public org.springframework.data.domain.Page<ProductDetails> getProducts()
      A Page of Products for the category to choose from.
      Returns:
      A Page of Products for the category to choose from.
    • setId

      public void setId(String id)
      The ID of the category.
      Parameters:
      id - The ID of the category.
    • setName

      public void setName(String name)
      The name of the category.
      Parameters:
      name - The name of the category.
    • setProductMembershipRule

      public void setProductMembershipRule(String productMembershipRule)
      The rule string used to check if a related product is a member of this category. Only applies when this category's product membership type is CategoryProductMembershipType.RULE_BASED.
      Parameters:
      productMembershipRule - an expression based off of Product criteria
      See Also:
    • setProducts

      public void setProducts(org.springframework.data.domain.Page<ProductDetails> products)
      A Page of Products for the category to choose from.
      Parameters:
      products - A Page of Products for the category to choose from.
    • 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