public class CategoryWrapper
extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Category>
wrap
method. super.wrap(Category)
super.name = null;
Modifier and Type | Field and Description |
---|---|
protected Boolean |
active |
protected Date |
activeEndDate |
protected Date |
activeStartDate |
protected Character |
archived |
protected List<CategoryAttributeWrapper> |
categoryAttributes |
protected String |
description |
protected Long |
id |
protected String |
longDescription |
protected String |
name |
protected List<ProductWrapper> |
products |
protected List<ProductWrapper> |
relatedProducts |
protected List<CategoryWrapper> |
subcategories |
protected String |
url |
protected String |
urlKey |
Constructor and Description |
---|
CategoryWrapper() |
Modifier and Type | Method and Description |
---|---|
protected List<CategoryWrapper> |
buildSubcategoryTree(List<CategoryWrapper> wrappers,
org.broadleafcommerce.core.catalog.domain.Category root,
javax.servlet.http.HttpServletRequest request) |
Boolean |
getActive() |
Date |
getActiveEndDate() |
Date |
getActiveStartDate() |
Character |
getArchived() |
List<CategoryAttributeWrapper> |
getCategoryAttributes() |
String |
getDescription() |
Long |
getId() |
String |
getLongDescription() |
String |
getName() |
List<ProductWrapper> |
getProducts() |
protected org.broadleafcommerce.core.search.service.SearchService |
getSearchService() |
List<CategoryWrapper> |
getSubcategories() |
String |
getUrl() |
String |
getUrlKey() |
void |
setActive(Boolean active) |
void |
setActiveEndDate(Date activeEndDate) |
void |
setActiveStartDate(Date activeStartDate) |
void |
setArchived(Character archived) |
void |
setCategoryAttributes(List<CategoryAttributeWrapper> categoryAttributes) |
void |
setDescription(String description) |
void |
setId(Long id) |
void |
setLongDescription(String longDescription) |
void |
setName(String name) |
void |
setProducts(List<ProductWrapper> products) |
void |
setSubcategories(List<CategoryWrapper> subcategories) |
void |
setUrl(String url) |
void |
setUrlKey(String urlKey) |
void |
wrapDetails(org.broadleafcommerce.core.catalog.domain.Category category,
javax.servlet.http.HttpServletRequest request) |
void |
wrapSummary(org.broadleafcommerce.core.catalog.domain.Category category,
javax.servlet.http.HttpServletRequest request) |
protected Long id
protected String name
protected String description
protected String longDescription
protected Boolean active
protected String url
protected String urlKey
protected Date activeStartDate
protected Date activeEndDate
protected List<CategoryWrapper> subcategories
protected List<ProductWrapper> products
protected List<ProductWrapper> relatedProducts
protected List<CategoryAttributeWrapper> categoryAttributes
protected Character archived
public void wrapDetails(org.broadleafcommerce.core.catalog.domain.Category category, javax.servlet.http.HttpServletRequest request)
wrapDetails
in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Category>
public void wrapSummary(org.broadleafcommerce.core.catalog.domain.Category category, javax.servlet.http.HttpServletRequest request)
wrapSummary
in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Category>
protected List<CategoryWrapper> buildSubcategoryTree(List<CategoryWrapper> wrappers, org.broadleafcommerce.core.catalog.domain.Category root, javax.servlet.http.HttpServletRequest request)
protected org.broadleafcommerce.core.search.service.SearchService getSearchService()
public Long getId()
public void setId(Long id)
id
- the id to setpublic String getName()
public void setName(String name)
name
- the name to setpublic String getDescription()
public void setDescription(String description)
description
- the description to setpublic String getLongDescription()
public void setLongDescription(String longDescription)
longDescription
- the long description to setpublic Boolean getActive()
public void setActive(Boolean active)
active
- the active to setpublic String getUrl()
public void setUrl(String url)
url
- the url to setpublic String getUrlKey()
public void setUrlKey(String urlKey)
urlKey
- the urlKey to setpublic Date getActiveStartDate()
public void setActiveStartDate(Date activeStartDate)
activeStartDate
- the activeStartDate to setpublic Date getActiveEndDate()
public void setActiveEndDate(Date activeEndDate)
activeEndDate
- the activeEndDate to setpublic List<CategoryWrapper> getSubcategories()
public void setSubcategories(List<CategoryWrapper> subcategories)
subcategories
- the subcategories to setpublic List<ProductWrapper> getProducts()
public void setProducts(List<ProductWrapper> products)
products
- the products to setpublic List<CategoryAttributeWrapper> getCategoryAttributes()
public void setCategoryAttributes(List<CategoryAttributeWrapper> categoryAttributes)
categoryAttributes
- the categoryAttributes to setpublic Character getArchived()
public void setArchived(Character archived)
Copyright © 2020. All rights reserved.