com.elasticpath.service.catalogview
Interface BrowsingService

All Superinterfaces:
EpPersistenceService, EpService
All Known Implementing Classes:
BrowsingServiceImpl

public interface BrowsingService
extends EpPersistenceService

Provide catalog browsing service.


Method Summary
 BrowsingResult browsing(BrowsingRequest browsingRequest, CatalogViewResultHistory previousBrowsingResultHistory, ShoppingCart shoppingCart, ProductLoadTuner productLoadTuner)
          Perform browsinging based on the given browsing request and returns the browsing result.
 
Methods inherited from interface com.elasticpath.service.EpPersistenceService
getObject, getPersistenceEngine, setPersistenceEngine
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Method Detail

browsing

BrowsingResult browsing(BrowsingRequest browsingRequest,
                        CatalogViewResultHistory previousBrowsingResultHistory,
                        ShoppingCart shoppingCart,
                        ProductLoadTuner productLoadTuner)
Perform browsinging based on the given browsing request and returns the browsing result.

By giving the previous browsing result history, you may get response quicker. If you don't have it, give a null. It doesn't affect the result.

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

By giving the product load tuner, you can fine control what data to be loaded for each product. It is used to improve performance.

Parameters:
browsingRequest - the browsing request
previousBrowsingResultHistory - the previous browsing results, give null if you don't have it
shoppingCart - the shopping cart, give null if you don't have it
productLoadTuner - the product load tuner, give null to populate all data
Returns:
a BrowsingResult instance