public class OrganizationOrdersReportingJob extends AbstractJobPerformable<OrganizationOrdersReportingCronJobModel>
| Modifier and Type | Field and Description |
|---|---|
protected B2BUnitService<B2BUnitModel,B2BCustomerModel> |
b2BUnitService |
protected java.lang.String |
catalog |
protected java.util.List<java.lang.String> |
categories |
protected CommonI18NService |
commonI18NService |
protected java.util.List<java.lang.String> |
currencies |
flexibleSearchService, modelService, sessionService| Constructor and Description |
|---|
OrganizationOrdersReportingJob() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<B2BUnitModel> |
getAllRootUnits() |
protected java.util.List<OrganizationOrderStatisticsModel> |
getOrganizationOrderStatistics(B2BUnitModel unit,
CurrencyModel currency,
java.util.Date today,
java.lang.String category) |
protected java.lang.Double |
getTotalOfOrderEntriesFilteredByProductCategory(java.util.Set<B2BUnitModel> branch,
CurrencyModel currency,
java.util.Date today,
java.lang.String categoryCode) |
protected java.lang.Double |
getTotalOrdersForBranch(java.util.Set<B2BUnitModel> branch,
CurrencyModel currency,
java.util.Date today) |
PerformResult |
perform(OrganizationOrdersReportingCronJobModel cronJob)
The execution body for a
ServicelayerJob. |
void |
setB2BUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2BUnitService) |
void |
setCatalog(java.lang.String catalog) |
void |
setCatalogVersionService(CatalogVersionService catalogVersionService) |
void |
setCategories(java.util.List<java.lang.String> categories) |
void |
setCommonI18NService(CommonI18NService commonI18NService) |
void |
setCurrencies(java.util.List<java.lang.String> currencies) |
clearAbortRequestedIfNeeded, isAbortable, isPerformable, setFlexibleSearchService, setModelService, setSessionServiceprotected B2BUnitService<B2BUnitModel,B2BCustomerModel> b2BUnitService
protected CommonI18NService commonI18NService
protected java.util.List<java.lang.String> currencies
protected java.util.List<java.lang.String> categories
protected java.lang.String catalog
public PerformResult perform(OrganizationOrdersReportingCronJobModel cronJob)
JobPerformableServicelayerJob. Implement here your execution logic. It can be called
synchronous or asynchronous. So be aware of thread-safety. Method will return a result object saying if the
execution has reached end and if it was successful.perform in interface JobPerformable<OrganizationOrdersReportingCronJobModel>perform in class AbstractJobPerformable<OrganizationOrdersReportingCronJobModel>cronJob - the related CronJob in whose context the execution will be performed.PerformResult that indicates whether the execution was successfully executed
or not and has finished or not.protected java.util.List<OrganizationOrderStatisticsModel> getOrganizationOrderStatistics(B2BUnitModel unit, CurrencyModel currency, java.util.Date today, java.lang.String category)
protected java.lang.Double getTotalOrdersForBranch(java.util.Set<B2BUnitModel> branch, CurrencyModel currency, java.util.Date today)
protected java.lang.Double getTotalOfOrderEntriesFilteredByProductCategory(java.util.Set<B2BUnitModel> branch, CurrencyModel currency, java.util.Date today, java.lang.String categoryCode)
protected java.util.List<B2BUnitModel> getAllRootUnits()
public void setB2BUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2BUnitService)
public void setCommonI18NService(CommonI18NService commonI18NService)
public void setCurrencies(java.util.List<java.lang.String> currencies)
public void setCategories(java.util.List<java.lang.String> categories)
public void setCatalog(java.lang.String catalog)
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
Copyright © 2018 SAP SE. All Rights Reserved.