|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Category
A Category
represents a collection of related Product
s. A Category
is likely to have one or more
products in it.
Method Summary | |
---|---|
void |
addChild(Category category)
Add the given category as a child. |
AttributeValueGroup |
getAttributeValueGroup()
Get the attribute value group. |
java.util.Set |
getAvailableChildren()
Get the available children categories. |
CategoryType |
getCategoryType()
Returns the category type. |
java.util.Set |
getChildren()
Get the children categories. |
java.lang.String |
getCode()
Returns the category code. |
java.util.Date |
getEndDate()
Get the end date. |
boolean |
getHasSubCategories()
Return the flag to indicate whether this category has subCategories or not. |
java.util.Date |
getLastModifiedDate()
Returns the date when the category was last modified. |
java.util.Map |
getLocaleDependantFieldsMap()
Gets the all LocaleDependantFields as a map. |
int |
getOrdering()
Get the ordering number. |
Category |
getParent()
Get the parent category of this category. |
java.util.List |
getPathAsList()
Returns the category path as a List . |
java.lang.String |
getSeoUrl(java.util.Locale locale,
int pageNumber)
Returns the SEO URL, E.g. |
java.lang.String |
getSeoUrlWithoutSuffix(java.util.Locale locale)
Returns the SEO URL without suffix, E.g. |
java.util.Date |
getStartDate()
Get the start date that this category will become available to customers. |
java.lang.String |
getTemplate()
Get the display template name of this category. |
java.lang.String |
getTemplateWithFallBack(java.lang.String defaultTemplate)
Get the display template name of this category. |
java.util.Set |
getTopSellers()
Returns the top sellers for this category. |
boolean |
isAvailable()
Returns true if the category is available. |
boolean |
isHidden()
Returns true if the product should not be displayed (e.g. |
void |
removeChild(Category category)
Remove the given category from the children list. |
void |
setAttributeValueGroup(AttributeValueGroup attributeValueGroup)
Set the attribute value group. |
void |
setCategoryType(CategoryType categoryType)
Set the CategoryType . |
void |
setCode(java.lang.String code)
Sets the category code. |
void |
setEndDate(java.util.Date endDate)
Set the end date. |
void |
setHidden(boolean hidden)
Set to true if the product should not be displayed. |
void |
setLastModifiedDate(java.util.Date lastModifiedDate)
Set the date when the category was last modified. |
void |
setOrdering(int ordering)
Set the ordering number. |
void |
setParent(Category category)
Set the parent cateogry. |
void |
setParentOneWay(Category newParent)
Set the parent cateogry. |
void |
setStartDate(java.util.Date startDate)
Set the start date that this category will become valid. |
void |
setTopSellers(java.util.Set topSellers)
Sets the top sellers for this category. |
Methods inherited from interface com.elasticpath.domain.Entity |
---|
getGuid, setGuid |
Methods inherited from interface com.elasticpath.domain.Persistence |
---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Methods inherited from interface com.elasticpath.domain.catalog.ObjectWithLocaleDependantFields |
---|
addOrUpdateLocaleDependantFields, getDisplayName, getLocaleDependantFields, getLocaleDependantFieldsWithoutFallBack, setLocaleDependantFieldsMap |
Methods inherited from interface com.elasticpath.domain.catalogview.BranchNode |
---|
getLevel, getPath |
Method Detail |
---|
void addChild(Category category)
category
- the category to be added as a childAttributeValueGroup getAttributeValueGroup()
AttributeValueGroup
java.util.Set getAvailableChildren()
CategoryType getCategoryType()
java.util.Set getChildren()
java.lang.String getCode()
java.util.Date getEndDate()
boolean getHasSubCategories()
java.util.Date getLastModifiedDate()
java.util.Map getLocaleDependantFieldsMap()
LocaleDependantFields
as a map.
getLocaleDependantFieldsMap
in interface ObjectWithLocaleDependantFields
LocaleDependantFields
mapint getOrdering()
Category getParent()
java.util.List getPathAsList()
List
. The root category will be the first.
List
.java.lang.String getSeoUrl(java.util.Locale locale, int pageNumber)
locale
- the localepageNumber
- the page number
java.lang.String getSeoUrlWithoutSuffix(java.util.Locale locale)
locale
- the locale
java.util.Date getStartDate()
java.lang.String getTemplate()
java.lang.String getTemplateWithFallBack(java.lang.String defaultTemplate)
defaultTemplate
- the default template name
java.util.Set getTopSellers()
boolean isAvailable()
true
if the category is available.
true
if the category is available.boolean isHidden()
void removeChild(Category category)
category
- the category to be removedvoid setAttributeValueGroup(AttributeValueGroup attributeValueGroup)
attributeValueGroup
- the AttributeValueGroup
void setCategoryType(CategoryType categoryType)
CategoryType
.
categoryType
- the CategoryType
void setCode(java.lang.String code)
code
- the category codevoid setEndDate(java.util.Date endDate)
endDate
- the end datevoid setHidden(boolean hidden)
hidden
- true if the product should not be displayedvoid setLastModifiedDate(java.util.Date lastModifiedDate)
lastModifiedDate
- the date when the category was last modifiedvoid setOrdering(int ordering)
ordering
- the ordering numbervoid setParent(Category category)
category
- the parent categoryvoid setParentOneWay(Category newParent)
newParent
- the new parent categoryvoid setStartDate(java.util.Date startDate)
startDate
- the start datevoid setTopSellers(java.util.Set topSellers)
topSellers
- the top sellers for this category
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |