Class ContentResolverRequest
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.ContentResolverRequest
- All Implemented Interfaces:
Serializable
Represents a request to the to fetch CMS content to retrieve
ContentItems
from a commerce-facing context.- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
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 booleanbooleanReturn any additional attributes passed in the request not matching any defined properties.Map holding any additional attributes passed in the request not matching any defined properties.Any contextual information needed to resolve targeted content.com.broadleafcommerce.data.tracking.core.context.ContextInfoTheContextInfoderived from the original request containing tenant and sandbox info.The parameters included in the original request that don't need to be enumerated in this service but passed along to the provider.The id of this content resolver request.inthashCode()booleanIf any content items reference categories, this flag indicates that the categories' products should be hydrated.booleanIf any content items reference products, this flag indicates that the products' non-primary assets should be hydrated.voidsetAttributes(Map<String, Object> attributes) Map holding any additional attributes passed in the request not matching any defined properties.voidsetContentContext(ContentContext contentContext) Any contextual information needed to resolve targeted content.voidsetContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info.voidsetHydrateCategoryProducts(boolean hydrateCategoryProducts) If any content items reference categories, this flag indicates that the categories' products should be hydrated.voidsetHydrateProductAssets(boolean hydrateProductAssets) If any content items reference products, this flag indicates that the products' non-primary assets should be hydrated.voidsetParameters(org.springframework.util.MultiValueMap<String, String> parameters) The parameters included in the original request that don't need to be enumerated in this service but passed along to the provider.voidsetRequestId(String requestId) The id of this content resolver request.toString()
-
Constructor Details
-
ContentResolverRequest
public ContentResolverRequest()
-
-
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
-
getAttribute
Return any additional attributes passed in the request not matching any defined properties.- Returns:
- any additional attributes passed in the request not matching any defined properties.
-
getRequestId
The id of this content resolver request. -
isHydrateCategoryProducts
public boolean isHydrateCategoryProducts()If any content items reference categories, this flag indicates that the categories' products should be hydrated.This is only used in Catalog Browse Service and not passed downstream as a parameter, instead it will be translated in the appropriate pagination params or trigger relevant business logic.
- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
isHydrateProductAssets
public boolean isHydrateProductAssets()If any content items reference products, this flag indicates that the products' non-primary assets should be hydrated.- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
getContentContext
Any contextual information needed to resolve targeted content.If present, this information is used during content zone resolution.
-
getParameters
The parameters included in the original request that don't need to be enumerated in this service but passed along to the provider.- Returns:
- The parameters included in the original request
-
getContextInfo
public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()TheContextInfoderived from the original request containing tenant and sandbox info.- Returns:
- The
ContextInfoderived from the original request
-
getAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
setRequestId
The id of this content resolver request. -
setHydrateCategoryProducts
public void setHydrateCategoryProducts(boolean hydrateCategoryProducts) If any content items reference categories, this flag indicates that the categories' products should be hydrated.This is only used in Catalog Browse Service and not passed downstream as a parameter, instead it will be translated in the appropriate pagination params or trigger relevant business logic.
- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
setHydrateProductAssets
public void setHydrateProductAssets(boolean hydrateProductAssets) If any content items reference products, this flag indicates that the products' non-primary assets should be hydrated.- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
setContentContext
Any contextual information needed to resolve targeted content.If present, this information is used during content zone resolution.
-
setParameters
The parameters included in the original request that don't need to be enumerated in this service but passed along to the provider. -
setContextInfo
public void setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info. -
setAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-