|
|||||||||
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.cmweb.ajaxservice.impl.DashboardAjaxServiceImpl
public class DashboardAjaxServiceImpl
This service provides access to functionality and data (beans) for manipulating catalog objects on the Javascript client Dashboard page.
Constructor Summary | |
---|---|
DashboardAjaxServiceImpl()
|
Method Summary | |
---|---|
java.util.List |
getCurrentMonthSalesStats(java.lang.String currencyCode)
Get monthly sales stats -- an array of stats (# orders, #items, average items per order, average order value, revenue). |
java.util.List |
getCurrentWeekSalesStats(java.lang.String currencyCode)
Get current week's sales stats -- an array of stats (# orders, #items, average items per order, average order value, revenue). |
java.util.List |
getCurrentYearSalesStats(java.lang.String currencyCode)
Get current year's sales stats -- an array of stats (# orders, #items, average items per order, average order value, revenue). |
java.util.List |
getLastWeekSalesStats(java.lang.String currencyCode)
Get sales stats for last week -- an array of stats (# orders, #items, average items per order, average order value, revenue). |
java.util.Map |
getQuickLinkStats()
Get a map of order and promotion statistics, mapping from status (openOrders, holdOrders, activePromotions) to count. |
java.util.Map |
getStoreUsageStats()
Get a map of store usage stats, mapping a period (day, lastDay, week, lastWeek, month, year) to an array of statistics (#registrations, #return customers, #new customers). |
java.util.List |
getTodaySalesStats(java.lang.String currencyCode)
Get today's sales stats -- an array of stats (# orders, #items, average items per order, average order value, revenue). |
java.util.List |
getTopCategoriesStats(java.lang.String period,
int maxResults)
Get a list of the top selling leaf categories for the given time period. |
java.util.List |
getTopProductsStats(java.lang.String period,
int maxResults)
Get a list of the top selling products for the given time period. |
java.util.List |
getYesterdaySalesStats(java.lang.String currencyCode)
Get yesterday's sales stats -- an array of stats (# orders, #items, average items per order, average order value, revenue). |
void |
setCategoryService(CategoryService categoryService)
Set the category service. |
void |
setCustomerReportService(CustomerReportService customerReportService)
Set the Customer Report Service. |
void |
setOrderReportService(OrderReportService orderReportService)
Set the Order Report Service. |
void |
setProductService(ProductService productService)
Set the Product Service. |
void |
setPromotionReportService(PromotionReportService promotionReportService)
Set the promotion Report Service. |
void |
setTopSellerService(TopSellerService topSellerService)
Set the Top Seller Service. |
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.EpService |
---|
getElasticPath, setElasticPath |
Constructor Detail |
---|
public DashboardAjaxServiceImpl()
Method Detail |
---|
public java.util.List getCurrentMonthSalesStats(java.lang.String currencyCode)
getCurrentMonthSalesStats
in interface DashboardAjaxService
currencyCode
- The currency code to calculate statistics for.
public java.util.List getCurrentWeekSalesStats(java.lang.String currencyCode)
getCurrentWeekSalesStats
in interface DashboardAjaxService
currencyCode
- The currency code to calculate statistics for.
public java.util.List getCurrentYearSalesStats(java.lang.String currencyCode)
getCurrentYearSalesStats
in interface DashboardAjaxService
currencyCode
- The currency code to calculate statistics for.
public java.util.List getLastWeekSalesStats(java.lang.String currencyCode)
getLastWeekSalesStats
in interface DashboardAjaxService
currencyCode
- The currency code to calculate statistics for.
public java.util.Map getQuickLinkStats()
getQuickLinkStats
in interface DashboardAjaxService
public java.util.Map getStoreUsageStats()
getStoreUsageStats
in interface DashboardAjaxService
public java.util.List getTodaySalesStats(java.lang.String currencyCode)
getTodaySalesStats
in interface DashboardAjaxService
currencyCode
- The currency code to calculate statistics for.
public java.util.List getTopCategoriesStats(java.lang.String period, int maxResults)
getTopCategoriesStats
in interface DashboardAjaxService
period
- Time period to calculate for (day, lastDay, week, lastWeek, month, year).maxResults
- Number of top categories to return.
maxResults
containing arrays Category Product Name and Sales Count.public java.util.List getTopProductsStats(java.lang.String period, int maxResults)
getTopProductsStats
in interface DashboardAjaxService
period
- Time period to calculate for (day, lastDay, week, lastWeek, month, year).maxResults
- Number of top products to return.
maxResults
containing arrays of Product Name and Sales Count.public java.util.List getYesterdaySalesStats(java.lang.String currencyCode)
getYesterdaySalesStats
in interface DashboardAjaxService
currencyCode
- The currency code to calculate statistics for.
public void setCategoryService(CategoryService categoryService)
categoryService
- The servicepublic void setCustomerReportService(CustomerReportService customerReportService)
customerReportService
- The report servicepublic void setOrderReportService(OrderReportService orderReportService)
orderReportService
- The report servicepublic void setProductService(ProductService productService)
productService
- The servicepublic void setPromotionReportService(PromotionReportService promotionReportService)
promotionReportService
- The report servicepublic void setTopSellerService(TopSellerService topSellerService)
topSellerService
- The report service
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |