com.elasticpath.cmweb.ajaxservice
Interface SkuConfigurationService

All Superinterfaces:
EpService
All Known Implementing Classes:
SkuConfigurationServiceImpl

public interface SkuConfigurationService
extends EpService

Provides services relating to Sku Configuration for the Commerce Manager.


Method Summary
 java.util.Map getSkuUsageMap(long productUid)
          Retreive the multi-sku mappings for a given product.
 void setProductService(ProductService productService)
          Set a reference to the product service.
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Method Detail

getSkuUsageMap

java.util.Map getSkuUsageMap(long productUid)
Retreive the multi-sku mappings for a given product. This mapping consists of a map from an optionValueKey to an array of a map of available optionValueKeys of the next option, and a count of how many optionValueKeys are mapped (and therefore in use). For example: [ primaryKeyVal1 --> [ [ secondaryKeyVal1 --> [ [...], 5], secondaryKeyVal2 --> [ [...], 1] ], 2 ], primaryKeyVal2 --> [ ... ] ]

Parameters:
productUid - The uid of the product
Returns:
a Map containing nested mappings of optionValueKeys to maps of available optionValueKeys and count of options in use

setProductService

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

Parameters:
productService - the product service