java.lang.Object
com.broadleafcommerce.subscriptionoperation.domain.Category
All Implemented Interfaces:
Serializable

public class Category extends Object implements Serializable
Categories provide a way to group related Products for merchandising, marketing, and search results.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • Category

      public Category()
  • Method Details

    • addAdditionalAttribute

      public void addAdditionalAttribute(String name, Object value)
      Takes in any additional attributes passed in the request not matching any defined properties.
      Parameters:
      name - Name of the additional attribute
      value - Value of the additional attribute
    • getAdditionalAttribute

      public Map<String,Object> getAdditionalAttribute()
      Return any additional attributes passed in the request not matching any defined properties.
      Returns:
      any additional attributes passed in the request not matching any defined properties.
    • getProducts

      public org.springframework.data.domain.Page<Product> getProducts()
      The first page of Products belonging to the category.
    • getAdditionalAttributes

      public Map<String,Object> getAdditionalAttributes()
      Map holding any additional attributes passed in the request not matching any defined properties.
    • setProducts

      public void setProducts(org.springframework.data.domain.Page<Product> products)
      The first page of Products belonging to the category.
    • setAdditionalAttributes

      public void setAdditionalAttributes(Map<String,Object> additionalAttributes)
      Map holding any additional attributes passed in the request not matching any defined properties.
    • 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