public class CategoryWrapper extends BaseWrapper implements APIWrapper<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 List<CategoryAttributeWrapper> |
categoryAttributes |
protected String |
description |
protected Long |
id |
protected String |
name |
protected List<ProductWrapper> |
products |
protected List<CategoryWrapper> |
subcategories |
protected String |
url |
protected String |
urlKey |
context| Constructor and Description |
|---|
CategoryWrapper() |
createElementWrappers, setApplicationContextprotected Long id
protected String name
protected String description
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<CategoryAttributeWrapper> categoryAttributes
public void wrapDetails(Category category, javax.servlet.http.HttpServletRequest request)
wrapDetails in interface APIWrapper<Category>public void wrapSummary(Category category, javax.servlet.http.HttpServletRequest request)
wrapSummary in interface APIWrapper<Category>protected List<CategoryWrapper> buildSubcategoryTree(List<CategoryWrapper> wrappers, Category root, javax.servlet.http.HttpServletRequest request)
protected 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 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 setCopyright © 2015. All Rights Reserved.