com.elasticpath.service.catalogview.impl
Class BrowsingServiceImpl

java.lang.Object
  extended by com.elasticpath.service.impl.AbstractEpServiceImpl
      extended by com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
          extended by com.elasticpath.service.catalogview.impl.BrowsingServiceImpl
All Implemented Interfaces:
BrowsingService, EpPersistenceService, EpService

public class BrowsingServiceImpl
extends AbstractEpPersistenceServiceImpl
implements BrowsingService

Represents a default implementation of BrowsingService.


Constructor Summary
BrowsingServiceImpl()
           
 
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.
 java.lang.Object getObject(long uid)
          Not implemented.
 void setCategoryService(CategoryService categoryService)
          Sets the category service.
 void setProductRetrieveStrategy(ProductRetrieveStrategy productRetrieveStrategy)
          Sets the ProductRetrieveStrategy.
 void setTopSellerService(TopSellerService topSellerService)
          Sets the top seller service.
 
Methods inherited from class com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
getPersistenceEngine, setPersistenceEngine
 
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.EpPersistenceService
getPersistenceEngine, setPersistenceEngine
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Constructor Detail

BrowsingServiceImpl

public BrowsingServiceImpl()
Method Detail

browsing

public 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.

Specified by:
browsing in interface BrowsingService
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

getObject

public java.lang.Object getObject(long uid)
Not implemented.

Specified by:
getObject in interface EpPersistenceService
Parameters:
uid - not used
Returns:
nothing

setCategoryService

public void setCategoryService(CategoryService categoryService)
Sets the category service.

Parameters:
categoryService - the category service.

setProductRetrieveStrategy

public void setProductRetrieveStrategy(ProductRetrieveStrategy productRetrieveStrategy)
Sets the ProductRetrieveStrategy.

Parameters:
productRetrieveStrategy - the product retrieve strategy

setTopSellerService

public void setTopSellerService(TopSellerService topSellerService)
Sets the top seller service.

Parameters:
topSellerService - the top seller service