|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Category
Implementations of this interface are used to hold data about a Category. A category is a group of products.
You should implement this class if you want to make significant changes to how the
Category is persisted. If you just want to add additional fields then you should extend CategoryImpl.
CategoryImpl}| Method Summary | |
|---|---|
java.util.Date |
getActiveEndDate()
Gets the active end date. |
java.util.Date |
getActiveStartDate()
Gets the active start date. |
java.util.List<Category> |
getAllChildCategories()
Gets the child categories. |
java.util.List<Category> |
getAllParentCategories()
|
java.util.List<Product> |
getAllProducts()
|
java.lang.String |
getCategoryImage(java.lang.String imageKey)
Gets the category image. |
java.util.Map<java.lang.String,java.lang.String> |
getCategoryImages()
Gets the category images. |
java.util.Map<java.lang.String,Media> |
getCategoryMedia()
Gets the category media map |
java.util.List<Category> |
getChildCategories()
Gets the child categories. |
java.util.Map<java.lang.String,java.util.List<Category>> |
getChildCategoryURLMap()
Gets the child category url map. |
Category |
getDefaultParentCategory()
Gets the default parent category. |
java.lang.String |
getDescription()
Gets the description. |
java.lang.String |
getDisplayTemplate()
Gets the display template. |
java.util.List<FeaturedProduct> |
getFeaturedProducts()
Gets the featured products. |
java.lang.String |
getGeneratedUrl()
Gets the generated url. |
java.lang.Long |
getId()
Gets the id. |
java.lang.String |
getLongDescription()
Gets the long description. |
java.lang.String |
getName()
Gets the name. |
java.lang.String |
getUrl()
Gets the url. |
java.lang.String |
getUrlKey()
Gets the url key. |
boolean |
hasAllChildCategories()
Checks for child categories. |
boolean |
hasChildCategories()
Checks for child categories. |
boolean |
isActive()
Checks if is active. |
void |
setActiveEndDate(java.util.Date activeEndDate)
Sets the active end date. |
void |
setActiveStartDate(java.util.Date activeStartDate)
Sets the active start date. |
void |
setAllChildCategories(java.util.List<Category> childCategories)
Sets the all child categories. |
void |
setAllParentCategories(java.util.List<Category> allParentCategories)
|
void |
setAllProducts(java.util.List<Product> allProducts)
|
void |
setCategoryImages(java.util.Map<java.lang.String,java.lang.String> categoryImages)
Sets the category images. |
void |
setCategoryMedia(java.util.Map<java.lang.String,Media> categoryMedia)
Sets the category images. |
void |
setChildCategories(java.util.List<Category> childCategories)
Sets the all child categories. |
void |
setChildCategoryURLMap(java.util.Map<java.lang.String,java.util.List<Category>> cachedChildCategoryUrlMap)
|
void |
setDefaultParentCategory(Category defaultParentCategory)
Sets the default parent category. |
void |
setDescription(java.lang.String description)
Sets the description. |
void |
setDisplayTemplate(java.lang.String displayTemplate)
Sets the display template. |
void |
setFeaturedProducts(java.util.List<FeaturedProduct> featuredProducts)
Sets the featured products. |
void |
setId(java.lang.Long id)
Sets the id. |
void |
setLongDescription(java.lang.String longDescription)
Sets the long description. |
void |
setName(java.lang.String name)
Sets the name. |
void |
setUrl(java.lang.String url)
Sets the url. |
void |
setUrlKey(java.lang.String urlKey)
Sets the url key. |
| Method Detail |
|---|
java.lang.Long getId()
void setId(java.lang.Long id)
id - the new idjava.lang.String getName()
void setName(java.lang.String name)
name - the new nameCategory getDefaultParentCategory()
void setDefaultParentCategory(Category defaultParentCategory)
defaultParentCategory - the new default parent categoryjava.util.List<Category> getAllParentCategories()
void setAllParentCategories(java.util.List<Category> allParentCategories)
java.lang.String getUrl()
void setUrl(java.lang.String url)
url - the new urljava.lang.String getUrlKey()
java.lang.String getGeneratedUrl()
void setUrlKey(java.lang.String urlKey)
urlKey - the new url keyjava.lang.String getDescription()
void setDescription(java.lang.String description)
description - the new descriptionjava.util.Date getActiveStartDate()
void setActiveStartDate(java.util.Date activeStartDate)
activeStartDate - the new active start datejava.util.Date getActiveEndDate()
void setActiveEndDate(java.util.Date activeEndDate)
activeEndDate - the new active end dateboolean isActive()
java.lang.String getDisplayTemplate()
void setDisplayTemplate(java.lang.String displayTemplate)
displayTemplate - the new display templatejava.util.Map<java.lang.String,java.util.List<Category>> getChildCategoryURLMap()
void setChildCategoryURLMap(java.util.Map<java.lang.String,java.util.List<Category>> cachedChildCategoryUrlMap)
java.util.List<Category> getAllChildCategories()
boolean hasAllChildCategories()
void setAllChildCategories(java.util.List<Category> childCategories)
allChildCategories - the new all child categoriesjava.util.List<Category> getChildCategories()
boolean hasChildCategories()
void setChildCategories(java.util.List<Category> childCategories)
allChildCategories - the new all child categoriesjava.util.Map<java.lang.String,java.lang.String> getCategoryImages()
java.lang.String getCategoryImage(java.lang.String imageKey)
imageKey - the image key
void setCategoryImages(java.util.Map<java.lang.String,java.lang.String> categoryImages)
categoryImages - the category imagesjava.util.Map<java.lang.String,Media> getCategoryMedia()
void setCategoryMedia(java.util.Map<java.lang.String,Media> categoryMedia)
categoryMedia - the category mediajava.lang.String getLongDescription()
void setLongDescription(java.lang.String longDescription)
longDescription - the new long descriptionjava.util.List<FeaturedProduct> getFeaturedProducts()
void setFeaturedProducts(java.util.List<FeaturedProduct> featuredProducts)
featuredProducts - the featured productsjava.util.List<Product> getAllProducts()
void setAllProducts(java.util.List<Product> allProducts)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||