Class CategoryDetails
java.lang.Object
com.broadleafcommerce.catalog.domain.category.commerce.CategoryDetails
- All Implemented Interfaces:
Serializable
A structure containing all the info necessary for a category details page or section shown in a
commerce-facing app (as opposed to a PIM UI).
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
ConstructorDescriptionCategoryDetails
(Category category, List<CategoryAsset> assets, List<Breadcrumb> breadcrumbs, org.springframework.data.domain.Page<ProductSummary> products, Map<String, List<PromotionalCategoryProductSummary>> promotionalProducts) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
All of the category'sassets
.NavigationalBreadcrumbs
to show on the details view.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
getId()
Used for SEO data in<meta description="">
in a category detail page.Used for SEO data in<title>
tag in a category detail page.getName()
org.springframework.data.domain.Page<ProductSummary>
A page ofProducts
belonging to the category.A map containing a category'sPromotionalProducts
where the key is thetype
.getUrl()
int
hashCode()
boolean
void
setActiveEndDate
(Instant activeEndDate) void
setActiveStartDate
(Instant activeStartDate) void
setAssets
(List<CategoryAsset> assets) All of the category'sassets
.void
setAttributes
(Map<String, Attribute> attributes) void
setBreadcrumbs
(List<Breadcrumb> breadcrumbs) NavigationalBreadcrumbs
to show on the details view.void
setCategory
(Category category) void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) void
setDescription
(String description) void
setDisplayTemplate
(String displayTemplate) void
setExternalId
(String externalId) void
void
setMetaDescription
(String metaDescription) void
setMetaTitle
(String metaTitle) void
void
setParentCategory
(CategoryRef parentCategory) void
setProductMembershipLocale
(Locale productMembershipLocale) void
setProductMembershipRule
(String productMembershipRule) void
setProductMembershipType
(String productMembershipType) void
setProducts
(org.springframework.data.domain.Page<ProductSummary> products) A page ofProducts
belonging to the category.void
setPromotionalProducts
(Map<String, List<PromotionalCategoryProductSummary>> promotionalProducts) A map containing a category'sPromotionalProducts
where the key is thetype
.void
setShowInSiteMap
(boolean showInSiteMap) void
setTaxCode
(String taxCode) void
toString()
-
Constructor Details
-
CategoryDetails
public CategoryDetails() -
CategoryDetails
public CategoryDetails(Category category, List<CategoryAsset> assets, List<Breadcrumb> breadcrumbs, org.springframework.data.domain.Page<ProductSummary> products, Map<String, List<PromotionalCategoryProductSummary>> promotionalProducts)
-
-
Method Details
-
getMetaDescription
Used for SEO data in<meta description="">
in a category detail page. If this is unset,getDescription()
is delegated to.- Returns:
- the meta description used for SEO data in category details page description
-
getMetaTitle
Used for SEO data in<title>
tag in a category detail page. If this is unset,getName()
is delegated to.- Returns:
- the meta title used for SEO data in category details page title
-
getCategory
-
getAssets
All of the category'sassets
.- Returns:
- All of the category's
assets
.
-
getBreadcrumbs
NavigationalBreadcrumbs
to show on the details view.- Returns:
- Navigational
Breadcrumbs
to show on the details view.
-
getProducts
A page ofProducts
belonging to the category. To configure the page pass paging params to theCategoryDetailsEndpoint
—they will be added to theCategoryDetailsRequest
.- Returns:
- A page of
Products
belonging to the category.
-
getPromotionalProducts
A map containing a category'sPromotionalProducts
where the key is thetype
.- Returns:
- A map containing a category's
PromotionalProducts
where the key is thetype
.
-
setCategory
-
setAssets
All of the category'sassets
.- Parameters:
assets
- All of the category'sassets
.
-
setBreadcrumbs
NavigationalBreadcrumbs
to show on the details view.- Parameters:
breadcrumbs
- NavigationalBreadcrumbs
to show on the details view.
-
setProducts
A page ofProducts
belonging to the category. To configure the page pass paging params to theCategoryDetailsEndpoint
—they will be added to theCategoryDetailsRequest
.- Parameters:
products
- A page ofProducts
belonging to the category.
-
setPromotionalProducts
public void setPromotionalProducts(Map<String, List<PromotionalCategoryProductSummary>> promotionalProducts) A map containing a category'sPromotionalProducts
where the key is thetype
.- Parameters:
promotionalProducts
- A map containing a category'sPromotionalProducts
where the key is thetype
.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getId
-
getName
-
getUrl
-
getExternalId
-
getDescription
-
getTaxCode
-
getActiveStartDate
-
getActiveEndDate
-
getDisplayTemplate
-
getParentCategory
-
getProductMembershipType
-
getProductMembershipRule
-
getProductMembershipLocale
-
isShowInSiteMap
public boolean isShowInSiteMap() -
getAttributes
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState() -
setId
-
setName
-
setUrl
-
setExternalId
-
setDescription
-
setTaxCode
-
setActiveStartDate
-
setActiveEndDate
-
setDisplayTemplate
-
setMetaTitle
-
setMetaDescription
-
setParentCategory
-
setProductMembershipType
-
setProductMembershipRule
-
setProductMembershipLocale
-
setShowInSiteMap
public void setShowInSiteMap(boolean showInSiteMap) -
setAttributes
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
-