com.elasticpath.service.catalog.impl
Class ProductRecommendationServiceImpl

java.lang.Object
  extended by com.elasticpath.service.impl.AbstractEpServiceImpl
      extended by com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
          extended by com.elasticpath.service.catalog.impl.ProductRecommendationServiceImpl
All Implemented Interfaces:
ProductRecommendationService, EpPersistenceService, EpService

public class ProductRecommendationServiceImpl
extends AbstractEpPersistenceServiceImpl
implements ProductRecommendationService

Provides services for computing product recommendations. (E.g. customers who purchased this product also purchased product X.) Product Recommendations are a type of ProductAssociation


Constructor Summary
ProductRecommendationServiceImpl()
           
 
Method Summary
 java.lang.Object getObject(long uid)
          There is no object that can be retrieved by this service.
 void setProductLoadTunerAssociationsOnly(ProductLoadTuner productLoadTunerAssociationsOnly)
          Set the product load tuner used to load products whose recommendations are to be updated.
 void setProductLoadTunerNoCollections(ProductLoadTuner productLoadTunerNoCollections)
          Set the product load tuner used only to set a reference to a target product.
 void setProductService(ProductService productService)
          Set the product service.
 void updateRecommendations()
          Re-compute product recommendations for each product in the system.
 
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

ProductRecommendationServiceImpl

public ProductRecommendationServiceImpl()
Method Detail

getObject

public java.lang.Object getObject(long uid)
                           throws EpServiceException
There is no object that can be retrieved by this service.

Specified by:
getObject in interface EpPersistenceService
Parameters:
uid - the Brand UID.
Returns:
null
Throws:
EpServiceException - - in case of any errors

setProductLoadTunerAssociationsOnly

public void setProductLoadTunerAssociationsOnly(ProductLoadTuner productLoadTunerAssociationsOnly)
Set the product load tuner used to load products whose recommendations are to be updated.

Parameters:
productLoadTunerAssociationsOnly - the ProductLoadTuner

setProductLoadTunerNoCollections

public void setProductLoadTunerNoCollections(ProductLoadTuner productLoadTunerNoCollections)
Set the product load tuner used only to set a reference to a target product. No collections are required for products loaded with this tuner.

Parameters:
productLoadTunerNoCollections - the ProductLoadTuner

setProductService

public void setProductService(ProductService productService)
Set the product service.

Specified by:
setProductService in interface ProductRecommendationService
Parameters:
productService - the product service

updateRecommendations

public void updateRecommendations()
Re-compute product recommendations for each product in the system.

Specified by:
updateRecommendations in interface ProductRecommendationService