Class ContentContext
java.lang.Object
com.broadleafcommerce.content.domain.commerce.context.ContentContext
- All Implemented Interfaces:
Serializable
DTO for holding data relevant for determining which content applies to an API request.
- Author:
- Jon Fleschler (jfleschler)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected boolean
boolean
Additional, unspecified attributes.TheCustomerRef
used in this contextTheLocale
used in this contextint
hashCode()
void
setAttributes
(Map<String, Object> attributes) Additional, unspecified attributes.void
setCustomer
(CustomerRef customer) TheCustomerRef
used in this contextvoid
TheLocale
used in this contexttoString()
-
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
TheLocale
used in this context -
getCustomer
TheCustomerRef
used in this context -
getAttributes
Additional, unspecified attributes. -
setLocale
TheLocale
used in this context -
setCustomer
TheCustomerRef
used in this context -
setAttributes
Additional, unspecified attributes. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-