Class ConsolidatedProduct
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware,Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConsolidatedProduct(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 booleanbooleanAllProductAssetinstances associated with this product.<T> TgetAttribute(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.ContextStatejavax.money.MonetaryAmountgetCost()javax.money.CurrencyUnitjavax.money.MonetaryAmountgetId()The IDs of marketplace applications where this product could appear in, based on the catalog hierarchy.javax.money.MonetaryAmountgetMsrp()getName()javax.money.MonetaryAmountThis is a map of Category ID to sorting value from theCategoryProduct.javax.money.MonetaryAmountThe 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.inthashCode()booleanisActive()booleanWhether or not this product has been archived in this context state.booleanbooleanbooleanbooleanDoes this product have required options? In other words, does it have anyitem choiceswith a minimum quantity greater than 0.booleanbooleanDeprecated.booleanisOnline()booleanisOnSale()booleanIf this product hasrequired options, are there enough available item choices to purchase this product? Note: IfhasRequiredOptionsis false, this property should be ignored.booleanvoidsetActiveEndDate(Instant activeEndDate) voidsetActiveStartDate(Instant activeStartDate) voidsetAdvancedTags(List<AdvancedTagRef> advancedTags) voidsetAllAssets(List<ProductAsset> allAssets) AllProductAssetinstances associated with this product.voidsetArchived(boolean archived) Whether or not this product has been archived in this context state.voidsetAttributes(Map<String, Attribute> attributes) voidsetAvailableOnline(boolean availableOnline) voidsetBrand(DataDrivenEnum brand) voidsetBusinessType(String businessType) voidsetCatalogOmissions(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.voidsetCatalogOverrides(Set<String> catalogOverrides) The IDs of descendant catalogs in which this context version of the product has been overridden.voidsetCategories(List<CategoryRef> categories) voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) voidsetCost(javax.money.MonetaryAmount cost) voidsetCurrency(javax.money.CurrencyUnit currency) voidsetDataDrivenEnums(List<DataDrivenEnum> dataDrivenEnums) voidsetDefaultPrice(javax.money.MonetaryAmount defaultPrice) voidsetDefaultVariant(Variant defaultVariant) voidsetDescription(String description) voidsetDimension(Dimensions dimension) voidsetDiscountable(boolean discountable) voidsetDisplayTemplate(String displayTemplate) voidsetEligibleForPickup(boolean eligibleForPickup) voidsetExplicitCategories(List<CategoryRef> explicitCategories) voidsetExternalId(String externalId) voidsetFulfillmentFlatRates(Map<String, FulfillmentFlatRate> fulfillmentFlatRates) voidsetHasRequiredOptions(boolean hasRequiredOptions) Does this product have required options? In other words, does it have anyitem choiceswith a minimum quantity greater than 0.voidvoidsetIncludedProducts(List<IncludedProduct> includedProducts) voidsetIndividuallySold(boolean individuallySold) voidsetInventoryCheckStrategy(String inventoryCheckStrategy) voidsetInventoryReservationStrategy(String inventoryReservationStrategy) voidsetInventoryType(String inventoryType) voidsetKeywords(List<String> keywords) voidsetMarketplaceApplications(Set<String> marketplaceApplications) The IDs of marketplace applications where this product could appear in, based on the catalog hierarchy.voidsetMaximumThreshold(Integer maximumThreshold) voidsetMerchandisingProduct(boolean merchandisingProduct) Deprecated.voidsetMerchandisingType(DataDrivenEnum merchandisingType) voidsetMergingType(String mergingType) voidsetMetaDescription(String metaDescription) voidsetMetaTitle(String metaTitle) voidsetMinimumThreshold(Integer minimumThreshold) voidsetMsrp(javax.money.MonetaryAmount msrp) voidvoidsetOnline(boolean online) voidsetOptionAssets(Map<String, ProductAsset> optionAssets) voidsetOptions(List<ProductOption> options) voidsetPricingKey(String pricingKey) voidsetPrimaryAsset(ProductAsset primaryAsset) voidsetPrimaryCategory(CategoryRef primaryCategory) voidsetProduct(Product product) voidsetProductSortingWithinCategories(Map<String, String> productSortingWithinCategories) This is a map of Category ID to sorting value from theCategoryProduct.voidsetProductType(String productType) voidsetRequiredOptionsAvailable(boolean requiredOptionsAvailable) If this product hasrequired options, are there enough available item choices to purchase this product? Note: IfhasRequiredOptionsis false, this property should be ignored.voidsetReviewsSummary(ReviewsSummary reviewsSummary) voidsetSalePrice(javax.money.MonetaryAmount salePrice) voidsetSandboxOverrides(Set<String> sandboxOverrides) The IDs of descendant sandboxes in which this context version of the product has been overridden.voidsetSandboxOwner(String sandboxOwner) The owner of the sandboxed product if it's in a user sandbox.voidsetSearchable(boolean searchable) voidvoidvoidsetTargetDemographic(DataDrivenEnum targetDemographic) voidsetTaxCode(String taxCode) voidsetTranslations(List<com.broadleafcommerce.translation.domain.Translation> translations) Translations for the product and all translatable consolidated objects.voidvoidvoidsetVariants(List<Variant> variants) voidsetVendorRef(String vendorRef) Soft reference to the vendor associated with the Product's catalog.voidtoString()
-
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
AllProductAssetinstances 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
ProductContextStatelevel isTrackingLevel.USER. -
isHasRequiredOptions
public boolean isHasRequiredOptions()Does this product have required options? In other words, does it have anyitem choiceswith 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: IfhasRequiredOptionsis false, this property should be ignored. -
getAdvancedTags
- Returns:
Referencesto theAdvancedTagsrelated to this product via anyProductTags.
-
setProduct
-
setVariants
-
setPrimaryCategory
-
setExplicitCategories
-
setCategories
-
setDataDrivenEnums
-
setOptionAssets
-
setAllAssets
AllProductAssetinstances 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
ProductContextStatelevel isTrackingLevel.USER. -
setHasRequiredOptions
public void setHasRequiredOptions(boolean hasRequiredOptions) Does this product have required options? In other words, does it have anyitem choiceswith 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: IfhasRequiredOptionsis false, this property should be ignored. -
setAdvancedTags
- Parameters:
advancedTags-Referencesto theAdvancedTagsrelated 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:
getContextStatein 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:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
-
setTaxCode
-
setMinimumThreshold
-
setMaximumThreshold
-
setDefaultVariant
-