Class SearchProductRequiredOptionInfo
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.SearchProductRequiredOptionInfo
- All Implemented Interfaces:
Serializable
Summarizes information about a search result product's required options. This is used to make it
easier for search indexers to index the related information and for consumer of search results to
build
PriceableTargets. By default, these are only present for
MerchandisingProducts.- Since:
- Catalog Browse 2.0.7, Release Train 2.1.5
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanjavax.money.MonetaryAmountThe default choice'sSpecificItemChoice.getOverridePrice().javax.money.MonetaryAmountThe price of the defaultSpecificItemChoice.The default choice'sSpecificItemChoice.getPricingKey().The defaultProductTermfor the defaultSpecificItemChoiceif relevant.From the underlying product pricing key defaultSpecificItemChoice.From the underlying SKU of the defaultSpecificItemChoice.intThe minimum quantity from theItemChoice.javax.money.MonetaryAmountThe override price from theItemChoice.inthashCode()voidsetDefaultChoiceOverridePrice(javax.money.MonetaryAmount defaultChoiceOverridePrice) The default choice'sSpecificItemChoice.getOverridePrice().voidsetDefaultChoicePrice(javax.money.MonetaryAmount defaultChoicePrice) The price of the defaultSpecificItemChoice.voidsetDefaultChoicePricingKey(String defaultChoicePricingKey) The default choice'sSpecificItemChoice.getPricingKey().voidsetDefaultChoiceUnderlyingDefaultTerm(ProductTerm defaultChoiceUnderlyingDefaultTerm) The defaultProductTermfor the defaultSpecificItemChoiceif relevant.voidsetDefaultChoiceUnderlyingPricingKey(String defaultChoiceUnderlyingPricingKey) From the underlying product pricing key defaultSpecificItemChoice.voidsetDefaultChoiceUnderlyingSku(String defaultChoiceUnderlyingSku) From the underlying SKU of the defaultSpecificItemChoice.voidsetMinimumQuantity(int minimumQuantity) The minimum quantity from theItemChoice.voidsetOverridePrice(javax.money.MonetaryAmount overridePrice) The override price from theItemChoice.voidsetPricingKey(String pricingKey) voidsetTargetType(String targetType) toString()
-
Constructor Details
-
SearchProductRequiredOptionInfo
public SearchProductRequiredOptionInfo()
-
-
Method Details
-
getPricingKey
-
getTargetType
-
getOverridePrice
public javax.money.MonetaryAmount getOverridePrice()The override price from theItemChoice. -
getMinimumQuantity
public int getMinimumQuantity()The minimum quantity from theItemChoice. -
getDefaultChoicePricingKey
The default choice'sSpecificItemChoice.getPricingKey(). -
getDefaultChoiceUnderlyingSku
From the underlying SKU of the defaultSpecificItemChoice. -
getDefaultChoiceUnderlyingPricingKey
From the underlying product pricing key defaultSpecificItemChoice. -
getDefaultChoiceOverridePrice
public javax.money.MonetaryAmount getDefaultChoiceOverridePrice()The default choice'sSpecificItemChoice.getOverridePrice(). -
getDefaultChoicePrice
public javax.money.MonetaryAmount getDefaultChoicePrice()The price of the defaultSpecificItemChoice.This may be the same as
defaultChoiceOverridePriceor else it is the underlying item's default price multiplied by the minimum quantity. -
getDefaultChoiceUnderlyingDefaultTerm
The defaultProductTermfor the defaultSpecificItemChoiceif relevant. -
setPricingKey
-
setTargetType
-
setOverridePrice
public void setOverridePrice(javax.money.MonetaryAmount overridePrice) The override price from theItemChoice. -
setMinimumQuantity
public void setMinimumQuantity(int minimumQuantity) The minimum quantity from theItemChoice. -
setDefaultChoicePricingKey
The default choice'sSpecificItemChoice.getPricingKey(). -
setDefaultChoiceUnderlyingSku
From the underlying SKU of the defaultSpecificItemChoice. -
setDefaultChoiceUnderlyingPricingKey
From the underlying product pricing key defaultSpecificItemChoice. -
setDefaultChoiceOverridePrice
public void setDefaultChoiceOverridePrice(javax.money.MonetaryAmount defaultChoiceOverridePrice) The default choice'sSpecificItemChoice.getOverridePrice(). -
setDefaultChoicePrice
public void setDefaultChoicePrice(javax.money.MonetaryAmount defaultChoicePrice) The price of the defaultSpecificItemChoice.This may be the same as
defaultChoiceOverridePriceor else it is the underlying item's default price multiplied by the minimum quantity. -
setDefaultChoiceUnderlyingDefaultTerm
The defaultProductTermfor the defaultSpecificItemChoiceif relevant. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-