com.elasticpath.service.catalogview
Interface ProductViewService

All Known Implementing Classes:
ProductViewServiceImpl

public interface ProductViewService

Provide catalog product view service.


Method Summary
 Product getProduct(java.lang.String productCode, ProductLoadTuner loadTuner, ShoppingCart shoppingCart)
          Returns the product with the given product code.
 

Method Detail

getProduct

Product getProduct(java.lang.String productCode,
                   ProductLoadTuner loadTuner,
                   ShoppingCart shoppingCart)
                   throws EpServiceException
Returns the product with the given product code. Return null if no matching product exists. You can give a product load tuner to fine control what data get populated of the returned product.

By giving a shopping cart, promotion rules will be applied to the returned product.

Parameters:
productCode - the product code.
loadTuner - the product load tuner
shoppingCart - the shopping cart, give null if you don't have it.
Returns:
the product if a product with the given code exists, otherwise null
Throws:
EpServiceException - - in case of any errors