Class CategoriesWrapper

java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.CategoriesWrapper
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<List<org.broadleafcommerce.core.catalog.domain.Category>>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class CategoriesWrapper extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<List<org.broadleafcommerce.core.catalog.domain.Category>>
This is a JAXB wrapper class for wrapping a collection of categories.
See Also:
  • Field Details

  • Constructor Details

    • CategoriesWrapper

      public CategoriesWrapper()
  • Method Details

    • wrapDetails

      public void wrapDetails(List<org.broadleafcommerce.core.catalog.domain.Category> cats, jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      wrapDetails in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<List<org.broadleafcommerce.core.catalog.domain.Category>>
    • wrapSummary

      public void wrapSummary(List<org.broadleafcommerce.core.catalog.domain.Category> cats, jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      wrapSummary in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<List<org.broadleafcommerce.core.catalog.domain.Category>>
    • getCategories

      public List<CategoryWrapper> getCategories()
      Returns:
      the categories
    • setCategories

      public void setCategories(List<CategoryWrapper> categories)
      Parameters:
      categories - the categories to set