Class ConsolidatedProduct
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionConsolidatedProduct
(Product product, List<Variant> variants, CategoryRef primaryCategory, List<CategoryRef> explicitCategories, List<CategoryRef> categories, List<DataDrivenEnum> dataDrivenEnums, Map<String, ProductAsset> optionAssets, List<ProductAsset> allAssets, String vendorRef, Map<String, String> productSortingWithinCategories, Set<String> catalogOverrides, Set<String> catalogOmissions, Set<String> sandboxOverrides, List<com.broadleafcommerce.translation.domain.Translation> translations, Set<String> marketplaceApplications, boolean archived, String sandboxOwner, boolean hasRequiredOptions, boolean requiredOptionsAvailable, List<AdvancedTagRef> advancedTags) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
AllProductAsset
instances associated with this product.<T> T
getAttribute
(String name) getBrand()
The IDs of descendant catalogs in which this context version of the product has been omitted as a result of one or more filters.The IDs of descendant catalogs in which this context version of the product has been overridden.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
javax.money.MonetaryAmount
getCost()
javax.money.CurrencyUnit
javax.money.MonetaryAmount
getId()
The IDs of marketplace applications where this product could appear in, based on the catalog hierarchy.javax.money.MonetaryAmount
getMsrp()
getName()
javax.money.MonetaryAmount
This is a map of Category ID to sorting value from theCategoryProduct
.javax.money.MonetaryAmount
The IDs of descendant sandboxes in which this context version of the product has been overridden.The owner of the sandboxed product if it's in a user sandbox.getSku()
getTags()
List<com.broadleafcommerce.translation.domain.Translation>
Translations for the product and all translatable consolidated objects.getUpc()
getUri()
Soft reference to the vendor associated with the Product's catalog.int
hashCode()
boolean
isActive()
boolean
Whether or not this product has been archived in this context state.boolean
boolean
boolean
boolean
Does this product have required options? In other words, does it have anyitem choices
with a minimum quantity greater than 0.boolean
boolean
Deprecated.boolean
isOnline()
boolean
isOnSale()
boolean
If this product hasrequired options
, are there enough available item choices to purchase this product? Note: IfhasRequiredOptions
is false, this property should be ignored.boolean
void
setActiveEndDate
(Instant activeEndDate) void
setActiveStartDate
(Instant activeStartDate) void
setAdvancedTags
(List<AdvancedTagRef> advancedTags) void
setAllAssets
(List<ProductAsset> allAssets) AllProductAsset
instances associated with this product.void
setArchived
(boolean archived) Whether or not this product has been archived in this context state.void
setAttributes
(Map<String, Attribute> attributes) void
setAvailableOnline
(boolean availableOnline) void
setBrand
(DataDrivenEnum brand) void
setBusinessType
(String businessType) void
setCatalogOmissions
(Set<String> catalogOmissions) The IDs of descendant catalogs in which this context version of the product has been omitted as a result of one or more filters.void
setCatalogOverrides
(Set<String> catalogOverrides) The IDs of descendant catalogs in which this context version of the product has been overridden.void
setCategories
(List<CategoryRef> categories) void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) void
setCost
(javax.money.MonetaryAmount cost) void
setCurrency
(javax.money.CurrencyUnit currency) void
setDataDrivenEnums
(List<DataDrivenEnum> dataDrivenEnums) void
setDefaultPrice
(javax.money.MonetaryAmount defaultPrice) void
setDefaultVariant
(Variant defaultVariant) void
setDescription
(String description) void
setDimension
(Dimensions dimension) void
setDiscountable
(boolean discountable) void
setDisplayTemplate
(String displayTemplate) void
setEligibleForPickup
(boolean eligibleForPickup) void
setExplicitCategories
(List<CategoryRef> explicitCategories) void
setExternalId
(String externalId) void
setFulfillmentFlatRates
(Map<String, FulfillmentFlatRate> fulfillmentFlatRates) void
setHasRequiredOptions
(boolean hasRequiredOptions) Does this product have required options? In other words, does it have anyitem choices
with a minimum quantity greater than 0.void
void
setIncludedProducts
(List<IncludedProduct> includedProducts) void
setIndividuallySold
(boolean individuallySold) void
setInventoryCheckStrategy
(String inventoryCheckStrategy) void
setInventoryReservationStrategy
(String inventoryReservationStrategy) void
setInventoryType
(String inventoryType) void
setKeywords
(List<String> keywords) void
setMarketplaceApplications
(Set<String> marketplaceApplications) The IDs of marketplace applications where this product could appear in, based on the catalog hierarchy.void
setMaximumThreshold
(Integer maximumThreshold) void
setMerchandisingProduct
(boolean merchandisingProduct) Deprecated.void
setMerchandisingType
(DataDrivenEnum merchandisingType) void
setMergingType
(String mergingType) void
setMetaDescription
(String metaDescription) void
setMetaTitle
(String metaTitle) void
setMinimumThreshold
(Integer minimumThreshold) void
setMsrp
(javax.money.MonetaryAmount msrp) void
void
setOnline
(boolean online) void
setOptionAssets
(Map<String, ProductAsset> optionAssets) void
setOptions
(List<ProductOption> options) void
setPricingKey
(String pricingKey) void
setPrimaryAsset
(ProductAsset primaryAsset) void
setPrimaryCategory
(CategoryRef primaryCategory) void
setProduct
(Product product) void
setProductSortingWithinCategories
(Map<String, String> productSortingWithinCategories) This is a map of Category ID to sorting value from theCategoryProduct
.void
setProductType
(String productType) void
setRequiredOptionsAvailable
(boolean requiredOptionsAvailable) If this product hasrequired options
, are there enough available item choices to purchase this product? Note: IfhasRequiredOptions
is false, this property should be ignored.void
setReviewsSummary
(ReviewsSummary reviewsSummary) void
setSalePrice
(javax.money.MonetaryAmount salePrice) void
setSandboxOverrides
(Set<String> sandboxOverrides) The IDs of descendant sandboxes in which this context version of the product has been overridden.void
setSandboxOwner
(String sandboxOwner) The owner of the sandboxed product if it's in a user sandbox.void
setSearchable
(boolean searchable) void
void
void
setTargetDemographic
(DataDrivenEnum targetDemographic) void
setTaxCode
(String taxCode) void
setTranslations
(List<com.broadleafcommerce.translation.domain.Translation> translations) Translations for the product and all translatable consolidated objects.void
void
void
setVariants
(List<Variant> variants) void
setVendorRef
(String vendorRef) Soft reference to the vendor associated with the Product's catalog.void
toString()
-
Constructor Details
-
ConsolidatedProduct
public ConsolidatedProduct() -
ConsolidatedProduct
public ConsolidatedProduct(Product product, List<Variant> variants, CategoryRef primaryCategory, List<CategoryRef> explicitCategories, List<CategoryRef> categories, List<DataDrivenEnum> dataDrivenEnums, Map<String, ProductAsset> optionAssets, List<ProductAsset> allAssets, String vendorRef, Map<String, String> productSortingWithinCategories, Set<String> catalogOverrides, Set<String> catalogOmissions, Set<String> sandboxOverrides, List<com.broadleafcommerce.translation.domain.Translation> translations, Set<String> marketplaceApplications, boolean archived, String sandboxOwner, boolean hasRequiredOptions, boolean requiredOptionsAvailable, List<AdvancedTagRef> advancedTags)
-
-
Method Details
-
getProduct
-
getVariants
-
getPrimaryCategory
-
getExplicitCategories
-
getCategories
-
getDataDrivenEnums
-
getOptionAssets
-
getAllAssets
AllProductAsset
instances associated with this product. -
getVendorRef
Soft reference to the vendor associated with the Product's catalog. This value can be null, in which case, no vendor is associated.- Returns:
- soft reference to the vendor associated with the Product's catalog.
-
getProductSortingWithinCategories
This is a map of Category ID to sorting value from theCategoryProduct
. -
getCatalogOverrides
The IDs of descendant catalogs in which this context version of the product has been overridden.e.g. if this product is in catalog A, and catalog B inherits this product from catalog A but contains a local change for this product, then the catalog A version product will contain "B" in its catalogOverrides.
- Returns:
- the IDs of any descendant catalogs in which this product has been overridden
-
getCatalogOmissions
The IDs of descendant catalogs in which this context version of the product has been omitted as a result of one or more filters.e.g. if this product is in catalog A, and catalog B inherits this product from catalog A but contains a filter that removes it from the view of catalog B, then the catalog A version product will contain "B" in its catalogOmissions.
- Returns:
- the IDs of any descendant catalogs in which this product has been omitted.
-
getSandboxOverrides
The IDs of descendant sandboxes in which this context version of the product has been overridden.e.g. if this product is in sandbox A, and sandbox B inherits this product from sandbox A but contains a local change for this product, then the sandbox A version product will contain "B" in its sandboxOverrides.
- Returns:
- the IDs of any descendant sandboxes in which this product has been overridden
-
getTranslations
Translations for the product and all translatable consolidated objects. -
getMarketplaceApplications
The IDs of marketplace applications where this product could appear in, based on the catalog hierarchy. -
isArchived
public boolean isArchived()Whether or not this product has been archived in this context state. -
getSandboxOwner
The owner of the sandboxed product if it's in a user sandbox.This will only be populated if the
Product
ContextState
level isTrackingLevel.USER
. -
isHasRequiredOptions
public boolean isHasRequiredOptions()Does this product have required options? In other words, does it have anyitem choices
with a minimum quantity greater than 0. -
isRequiredOptionsAvailable
public boolean isRequiredOptionsAvailable()If this product hasrequired options
, are there enough available item choices to purchase this product? Note: IfhasRequiredOptions
is false, this property should be ignored. -
getAdvancedTags
- Returns:
References
to theAdvancedTags
related to this product via anyProductTags
.
-
setProduct
-
setVariants
-
setPrimaryCategory
-
setExplicitCategories
-
setCategories
-
setDataDrivenEnums
-
setOptionAssets
-
setAllAssets
AllProductAsset
instances associated with this product. -
setVendorRef
Soft reference to the vendor associated with the Product's catalog. This value can be null, in which case, no vendor is associated.- Parameters:
vendorRef
- soft reference to the vendor associated with the Product's catalog.
-
setProductSortingWithinCategories
This is a map of Category ID to sorting value from theCategoryProduct
. -
setCatalogOverrides
The IDs of descendant catalogs in which this context version of the product has been overridden.e.g. if this product is in catalog A, and catalog B inherits this product from catalog A but contains a local change for this product, then the catalog A version product will contain "B" in its catalogOverrides.
- Parameters:
catalogOverrides
- the IDs of any descendant catalogs in which this product has been overridden
-
setCatalogOmissions
The IDs of descendant catalogs in which this context version of the product has been omitted as a result of one or more filters.e.g. if this product is in catalog A, and catalog B inherits this product from catalog A but contains a filter that removes it from the view of catalog B, then the catalog A version product will contain "B" in its catalogOmissions.
- Parameters:
catalogOmissions
- the IDs of any descendant catalogs in which this product has been omitted.
-
setSandboxOverrides
The IDs of descendant sandboxes in which this context version of the product has been overridden.e.g. if this product is in sandbox A, and sandbox B inherits this product from sandbox A but contains a local change for this product, then the sandbox A version product will contain "B" in its sandboxOverrides.
- Parameters:
catalogOverrides
- the IDs of any descendant sandboxes in which this product has been overridden
-
setTranslations
public void setTranslations(List<com.broadleafcommerce.translation.domain.Translation> translations) Translations for the product and all translatable consolidated objects. -
setMarketplaceApplications
The IDs of marketplace applications where this product could appear in, based on the catalog hierarchy. -
setArchived
public void setArchived(boolean archived) Whether or not this product has been archived in this context state. -
setSandboxOwner
The owner of the sandboxed product if it's in a user sandbox.This will only be populated if the
Product
ContextState
level isTrackingLevel.USER
. -
setHasRequiredOptions
public void setHasRequiredOptions(boolean hasRequiredOptions) Does this product have required options? In other words, does it have anyitem choices
with a minimum quantity greater than 0. -
setRequiredOptionsAvailable
public void setRequiredOptionsAvailable(boolean requiredOptionsAvailable) If this product hasrequired options
, are there enough available item choices to purchase this product? Note: IfhasRequiredOptions
is false, this property should be ignored. -
setAdvancedTags
- Parameters:
advancedTags
-References
to theAdvancedTags
related to this product via anyProductTags
.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getAttribute
-
isActive
public boolean isActive() -
isOnSale
public boolean isOnSale() -
getBusinessType
-
getPriceWithDependentItems
public javax.money.MonetaryAmount getPriceWithDependentItems() -
getId
-
getName
-
getUri
-
getDescription
-
getSku
-
getUpc
-
getExternalId
-
getCurrency
public javax.money.CurrencyUnit getCurrency() -
getPricingKey
-
getMsrp
public javax.money.MonetaryAmount getMsrp() -
getDefaultPrice
public javax.money.MonetaryAmount getDefaultPrice() -
getSalePrice
public javax.money.MonetaryAmount getSalePrice() -
getCost
public javax.money.MonetaryAmount getCost() -
getMetaTitle
-
getMetaDescription
-
getDisplayTemplate
-
isOnline
public boolean isOnline() -
isDiscountable
public boolean isDiscountable() -
getInventoryType
-
getMergingType
-
isAvailableOnline
public boolean isAvailableOnline() -
getInventoryCheckStrategy
-
getInventoryReservationStrategy
-
isEligibleForPickup
public boolean isEligibleForPickup() -
getFulfillmentFlatRates
-
getActiveStartDate
-
getActiveEndDate
-
getDimension
-
getWeight
-
isSearchable
public boolean isSearchable() -
isIndividuallySold
public boolean isIndividuallySold() -
isMerchandisingProduct
Deprecated. -
getProductType
-
getKeywords
-
getAttributes
-
getIncludedProducts
-
getOptions
-
getReviewsSummary
-
getPrimaryAsset
-
getTags
-
getBrand
-
getMerchandisingType
-
getTargetDemographic
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
-
getTaxCode
-
getMinimumThreshold
-
getMaximumThreshold
-
getDefaultVariant
-
setId
-
setName
-
setUri
-
setDescription
-
setSku
-
setUpc
-
setExternalId
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) -
setPricingKey
-
setMsrp
public void setMsrp(javax.money.MonetaryAmount msrp) -
setDefaultPrice
public void setDefaultPrice(javax.money.MonetaryAmount defaultPrice) -
setSalePrice
public void setSalePrice(javax.money.MonetaryAmount salePrice) -
setCost
public void setCost(javax.money.MonetaryAmount cost) -
setMetaTitle
-
setMetaDescription
-
setDisplayTemplate
-
setOnline
public void setOnline(boolean online) -
setDiscountable
public void setDiscountable(boolean discountable) -
setInventoryType
-
setMergingType
-
setAvailableOnline
public void setAvailableOnline(boolean availableOnline) -
setInventoryCheckStrategy
-
setInventoryReservationStrategy
-
setEligibleForPickup
public void setEligibleForPickup(boolean eligibleForPickup) -
setFulfillmentFlatRates
-
setActiveStartDate
-
setActiveEndDate
-
setDimension
-
setWeight
-
setSearchable
public void setSearchable(boolean searchable) -
setIndividuallySold
public void setIndividuallySold(boolean individuallySold) -
setMerchandisingProduct
Deprecated. -
setProductType
-
setBusinessType
-
setKeywords
-
setAttributes
-
setIncludedProducts
-
setOptions
-
setReviewsSummary
-
setPrimaryAsset
-
setTags
-
setBrand
-
setMerchandisingType
-
setTargetDemographic
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) - Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
-
setTaxCode
-
setMinimumThreshold
-
setMaximumThreshold
-
setDefaultVariant
-