|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.service.impl.AbstractEpServiceImpl com.elasticpath.sfweb.ajax.service.impl.SkuConfigurationServiceImpl
public class SkuConfigurationServiceImpl
Provides services relating to Sku Configuration.
Constructor Summary | |
---|---|
SkuConfigurationServiceImpl()
|
Method Summary | |
---|---|
java.util.Set |
getAvailableOptionValues(long productUid,
java.util.List selectedOptionValueCodes)
Returns the set of SkuOptions with option values for which there are skus available given the selected when the primary option value. |
java.lang.String[] |
getPriceTierContents(ProductSku productSku,
java.lang.String currencyCode)
Set a reference to the product sku service. |
SkuConfigurationBean |
getSkuConfigurationBean(long productUid)
Retrieve the multi-sku configuration options for a given product. |
GuidedSkuSelectionBean |
getSkuWithMatchingOptionValues(long productUid,
java.util.List optionValueCodes,
java.lang.String currencyCode,
long shoppingCartUid)
Gets a SKU matches the specifiec option value codes. |
void |
setPersistenceEngine(PersistenceEngine persistenceEngine)
Sets the persistence engine. |
void |
setProductService(ProductService productService)
Set a reference to the product service. |
void |
setProductSkuService(ProductSkuService productSkuService)
Set a reference to the product sku service. |
void |
setShoppingCartService(ShoppingCartService shoppingCartService)
Set a reference to the shopping cart service. |
void |
setSkuConfigurationDao(SkuConfigurationDao skuConfigurationDao)
Set the SKU configuration DAO. |
Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Constructor Detail |
---|
public SkuConfigurationServiceImpl()
Method Detail |
---|
public java.util.Set getAvailableOptionValues(long productUid, java.util.List selectedOptionValueCodes)
getAvailableOptionValues
in interface SkuConfigurationService
productUid
- the UID of the product whose options are being selectedselectedOptionValueCodes
- the option value codes that have already been selected
public java.lang.String[] getPriceTierContents(ProductSku productSku, java.lang.String currencyCode)
getPriceTierContents
in interface SkuConfigurationService
productSku
- the product skucurrencyCode
- the currency code
public SkuConfigurationBean getSkuConfigurationBean(long productUid)
getSkuConfigurationBean
in interface SkuConfigurationService
productUid
- the uid of the product to retrieve options for
SkuConfigurationBean
containing the requested informationpublic GuidedSkuSelectionBean getSkuWithMatchingOptionValues(long productUid, java.util.List optionValueCodes, java.lang.String currencyCode, long shoppingCartUid)
getSkuWithMatchingOptionValues
in interface SkuConfigurationService
productUid
- the SKU's product UIDoptionValueCodes
- a list of option value codes the SKU must havecurrencyCode
- the code for the currency *shoppingCartUid
- the uid of the shopping cart
public void setPersistenceEngine(PersistenceEngine persistenceEngine)
persistenceEngine
- the persistence engine to set.public void setProductService(ProductService productService)
setProductService
in interface SkuConfigurationService
productService
- the product servicepublic void setProductSkuService(ProductSkuService productSkuService)
productSkuService
- the product sku servicepublic void setShoppingCartService(ShoppingCartService shoppingCartService)
shoppingCartService
- the shopping cart service.public void setSkuConfigurationDao(SkuConfigurationDao skuConfigurationDao)
setSkuConfigurationDao
in interface SkuConfigurationService
skuConfigurationDao
- the SKU configuration DAO
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |