Class BulkContentResolverRequest

java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.BulkContentResolverRequest
All Implemented Interfaces:
Serializable

public class BulkContentResolverRequest extends Object implements 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 Details

    • BulkContentResolverRequest

      public BulkContentResolverRequest()
  • Method Details

    • getContentResolverRequests

      public List<ContentResolverRequest> getContentResolverRequests()
      List of ContentResolverRequest to 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

      public ContentContext getContentContext()
      Any contextual information needed to resolve targeted content.

      If present, this information is used during content zone resolution.

    • getParameters

      public org.springframework.util.MultiValueMap<String,String> 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()
      The ContextInfo derived from the original request containing tenant and sandbox info.
      Returns:
      The ContextInfo derived from the original request
    • setContentResolverRequests

      public void setContentResolverRequests(List<ContentResolverRequest> contentResolverRequests)
      List of ContentResolverRequest to 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

      public void setContentContext(ContentContext contentContext)
      Any contextual information needed to resolve targeted content.

      If present, this information is used during content zone resolution.

    • setParameters

      public void setParameters(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.
    • setContextInfo

      public void setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      The ContextInfo derived from the original request containing tenant and sandbox info.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object