|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TopSellerService
Provides services to process top seller related information.
Method Summary | |
---|---|
boolean |
calculateSalesCount()
Calculate the number of sales for a product and update its sales count based on the number of items ordered in the order. |
TopSeller |
findTopSellerByCategoryUid(long categoryUid)
Find top sellers of the given category uid. |
org.apache.commons.collections.map.ListOrderedMap |
getTopCategoriesFromDate(java.util.Date startDate,
int numResults)
Get map of leaf Categories and number of sales since a specific date. |
org.apache.commons.collections.map.ListOrderedMap |
getTopProductsFromDate(java.util.Date startDate,
int numResults)
Get map of Products and number of sales since a specific date. |
void |
setCategoryService(CategoryService categoryService)
Set the category service. |
void |
setOrderService(OrderService orderService)
Set the order service. |
void |
setProductService(ProductService productService)
Set the product service. |
void |
setPropertiesDao(PropertiesDao propertiesDao)
Sets the DAO used to load properties. |
void |
setUtility(Utility utility)
Set the utility class. |
void |
updateTopSellers()
Calculate the number of sales for a particular product and update its sales count. |
void |
updateTopSellersForCategories()
Populate top sellers for each categories. |
void |
updateTopSellersForTheStore()
Populate top sellers for the store. |
Methods inherited from interface com.elasticpath.service.EpPersistenceService |
---|
getObject, getPersistenceEngine, setPersistenceEngine |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
boolean calculateSalesCount()
true
if has updatesTopSeller findTopSellerByCategoryUid(long categoryUid)
categoryUid
- the category uid, give 0 to find top sellers for the whole
store
TopSeller
if found, otherwise null
org.apache.commons.collections.map.ListOrderedMap getTopCategoriesFromDate(java.util.Date startDate, int numResults)
startDate
- Date to start calculation fromnumResults
- The maximum number of products to return
org.apache.commons.collections.map.ListOrderedMap getTopProductsFromDate(java.util.Date startDate, int numResults)
startDate
- Date to start calculation fromnumResults
- The maximum number of products to return
void setCategoryService(CategoryService categoryService)
categoryService
- the category servicevoid setOrderService(OrderService orderService)
orderService
- the order servicevoid setProductService(ProductService productService)
productService
- the product servicevoid setPropertiesDao(PropertiesDao propertiesDao)
propertiesDao
- the properties DAO used to retrieve properties informationvoid setUtility(Utility utility)
utility
- the utility classvoid updateTopSellers()
void updateTopSellersForCategories()
void updateTopSellersForTheStore()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |