com.elasticpath.sfweb.ajax.service
Interface SkuConfigurationService

All Superinterfaces:
EpService
All Known Implementing Classes:
SkuConfigurationServiceImpl

public interface SkuConfigurationService
extends EpService

Provides services relating to Sku Configuration.


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 setProductService(ProductService productService)
          Set a reference to the product service.
 void setSkuConfigurationDao(SkuConfigurationDao skuConfigurationDao)
          Set the SKU configuration DAO.
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Method Detail

getAvailableOptionValues

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. The product's first option is considered the "primary" option and all of its option values are always returned.

Parameters:
productUid - the UID of the product whose options are being selected
selectedOptionValueCodes - the option value codes that have already been selected
Returns:
A set of SkuOptions with each having the available SkuOptionValues in them

getPriceTierContents

java.lang.String[] getPriceTierContents(ProductSku productSku,
                                        java.lang.String currencyCode)
Set a reference to the product sku service.

Parameters:
productSku - the product sku
currencyCode - the currency code
Returns:
the String Array that contains the price tier information. A example of the format is: 1 - 5 @ $10.99 6 + @ $8.99

getSkuConfigurationBean

SkuConfigurationBean getSkuConfigurationBean(long productUid)
Retrieve the multi-sku configuration options for a given product.

Parameters:
productUid - the uid of the product to retrieve options for
Returns:
a SkuConfigurationBean containing the requested information

getSkuWithMatchingOptionValues

GuidedSkuSelectionBean getSkuWithMatchingOptionValues(long productUid,
                                                      java.util.List optionValueCodes,
                                                      java.lang.String currencyCode,
                                                      long shoppingCartUid)
Gets a SKU matches the specifiec option value codes. Also returns display information required by the client including the SKU price and the URL to the SKU's image.

Parameters:
productUid - the SKU's product UID
optionValueCodes - a list of option value codes the SKU must have
currencyCode - the code for the currency
shoppingCartUid - the uid of the shopping cart
Returns:
a bean containing the selected SKU and other display information.

setProductService

void setProductService(ProductService productService)
Set a reference to the product service.

Parameters:
productService - the product service

setSkuConfigurationDao

void setSkuConfigurationDao(SkuConfigurationDao skuConfigurationDao)
Set the SKU configuration DAO.

Parameters:
skuConfigurationDao - the SKU configuration DAO