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

public class ContentContext extends Object implements Serializable
DTO for holding data relevant for determining which content applies to an API request.
Author:
Susana Cruz (susanaccruz)
See Also:
  • Field Details

  • Constructor Details

    • ContentContext

      public ContentContext()
  • Method Details

    • addAttribute

      public void addAttribute(String name, Object value)
      Takes in any additional attributes passed in the request not matching any defined properties.
      Parameters:
      name - Name of the additional attribute
      value - Value of the additional attribute
    • getLocale

      public String getLocale()
      The Locale used in this context
    • getCustomer

      public CustomerRef getCustomer()
      The CustomerRef used 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

      public Map<String,Object> getAttributes()
      Additional, unspecified attributes.
    • setLocale

      public void setLocale(String locale)
      The Locale used in this context
    • setCustomer

      public void setCustomer(CustomerRef customer)
      The CustomerRef used 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

      public void setAttributes(Map<String,Object> attributes)
      Additional, unspecified attributes.
    • 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