Class ProductAvailabilityIndex
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.ProductAvailabilityIndex
- All Implemented Interfaces:
Serializable
DTO to hold the basic necessary information for a product's related variants and their inventory
availability. This is used to improve performance and reduce payload size to the frontend,
especially when a given product has many variants.
- Since:
- Catalog Browse Service 2.2.0, Release Train 2.3.0
- Author:
- Susana Cruz (susanaccruz)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanA map that holds product's related variants, where the key is the unique identifier for the variant and the value represents a minimal version of theVariantobject with minimal data required for commerce flows.inthashCode()voidsetVariants(Map<String, VariantAvailabilityInfo> variants) A map that holds product's related variants, where the key is the unique identifier for the variant and the value represents a minimal version of theVariantobject with minimal data required for commerce flows.toString()
-
Constructor Details
-
ProductAvailabilityIndex
public ProductAvailabilityIndex()
-
-
Method Details
-
getVariants
A map that holds product's related variants, where the key is the unique identifier for the variant and the value represents a minimal version of theVariantobject with minimal data required for commerce flows.- Returns:
- a map that holds the product's related variants
-
setVariants
A map that holds product's related variants, where the key is the unique identifier for the variant and the value represents a minimal version of theVariantobject with minimal data required for commerce flows.- Parameters:
variants- a map that holds the product's related variants
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-