Class ContentContext
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.context.ContentContext
- All Implemented Interfaces:
Serializable
DTO for holding data relevant for determining which content applies to an API request.
- Author:
- Susana Cruz (susanaccruz)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected booleanbooleanAdditional, unspecified attributes.TheCustomerRefused in this contextTheLocaleused in this contextcom.broadleafcommerce.pricing.client.domain.context.PriceContextPricing context information that is used when hydrating products for any content items that reference them.inthashCode()voidsetAttributes(Map<String, Object> attributes) Additional, unspecified attributes.voidsetCustomer(CustomerRef customer) TheCustomerRefused in this contextvoidTheLocaleused in this contextvoidsetPriceContext(com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext) Pricing context information that is used when hydrating products for any content items that reference them.toString()
-
Field Details
-
CONTENT_CONTEXT_HEADER
- See Also:
-
-
Constructor Details
-
ContentContext
public ContentContext()
-
-
Method Details
-
addAttribute
Takes in any additional attributes passed in the request not matching any defined properties.- Parameters:
name- Name of the additional attributevalue- Value of the additional attribute
-
getLocale
TheLocaleused in this context -
getCustomer
TheCustomerRefused in this context -
getPriceContext
public com.broadleafcommerce.pricing.client.domain.context.PriceContext getPriceContext()Pricing context information that is used when hydrating products for any content items that reference them.- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
getAttributes
Additional, unspecified attributes. -
setLocale
TheLocaleused in this context -
setCustomer
TheCustomerRefused in this context -
setPriceContext
public void setPriceContext(com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext) Pricing context information that is used when hydrating products for any content items that reference them.- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
setAttributes
Additional, unspecified attributes. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-