|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.service.impl.AbstractEpServiceImpl com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl com.elasticpath.service.catalogview.impl.BrowsingServiceImpl
public class BrowsingServiceImpl
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 |
---|
public BrowsingServiceImpl()
Method Detail |
---|
public BrowsingResult browsing(BrowsingRequest browsingRequest, CatalogViewResultHistory previousBrowsingResultHistory, ShoppingCart shoppingCart, ProductLoadTuner productLoadTuner)
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.
browsing
in interface BrowsingService
browsingRequest
- the browsing requestpreviousBrowsingResultHistory
- the previous browsing results, give null
if you don't have itshoppingCart
- the shopping cart, , give null
if you don't have itproductLoadTuner
- the product load tuner, give null
to populate all data
BrowsingResult
instancepublic java.lang.Object getObject(long uid)
getObject
in interface EpPersistenceService
uid
- not used
public void setCategoryService(CategoryService categoryService)
categoryService
- the category service.public void setProductRetrieveStrategy(ProductRetrieveStrategy productRetrieveStrategy)
ProductRetrieveStrategy
.
productRetrieveStrategy
- the product retrieve strategypublic void setTopSellerService(TopSellerService topSellerService)
topSellerService
- the top seller service
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |