Class BulkContentResolverRequest
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.BulkContentResolverRequest
- All Implemented Interfaces:
Serializable
Represents a request to the to bulk fetch CMS content to retrieve
ContentItems from a commerce-facing context.- Since:
- 2.0.2
- Author:
- Susana Cruz (susanaccruz)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAny contextual information needed to resolve targeted content.List ofContentResolverRequestto includecom.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.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.voidsetContentContext(ContentContext contentContext) Any contextual information needed to resolve targeted content.voidsetContentResolverRequests(List<ContentResolverRequest> contentResolverRequests) List ofContentResolverRequestto includevoidsetContextInfo(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.toString()
-
Constructor Details
-
BulkContentResolverRequest
public BulkContentResolverRequest()
-
-
Method Details
-
getContentResolverRequests
List ofContentResolverRequestto include -
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
-
setContentResolverRequests
List ofContentResolverRequestto include -
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. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-