public abstract class AbstractStockLevelStatusJob extends AbstractJobPerformable<CronJobModel>
flexibleSearchService, modelService, sessionService| Constructor and Description |
|---|
AbstractStockLevelStatusJob() |
clearAbortRequestedIfNeeded, isAbortable, isPerformable, setFlexibleSearchService, setModelService, setSessionServicepublic PerformResult perform(CronJobModel job)
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<CronJobModel>perform in class AbstractJobPerformable<CronJobModel>job - 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 SiteMessageModel createSiteMessage(ProductInterestModel interest)
protected abstract StockNotificationTask createTask(java.util.Map<java.lang.String,ItemModel> data)
protected boolean isProductInStock(ProductInterestModel productInterest, java.util.Date now)
protected boolean isProductOnSale(ProductModel product, java.util.Date now)
protected StockService getStockService()
public void setStockService(StockService stockService)
protected BaseStoreService getBaseStoreService()
public void setBaseStoreService(BaseStoreService baseStoreService)
protected WarehouseSelectionStrategy getWarehouseSelectionStrategy()
public void setWarehouseSelectionStrategy(WarehouseSelectionStrategy warehouseSelectionStrategy)
protected BackInStockProductInterestDao getBackInStockProductInterestDao()
public void setBackInStockProductInterestDao(BackInStockProductInterestDao backInStockProductInterestDao)
public java.util.List<ProductInterestModel> getInStockProductInterests()
public void setTaskExecutor(TaskExecutor taskExecutor)
protected TaskExecutor getTaskExecutor()
protected NotificationService getNotificationService()
public void setNotificationService(NotificationService notificationService)
protected SiteMessageService getSiteMessageService()
public void setSiteMessageService(SiteMessageService siteMessageService)
protected CommerceCommonI18NService getCommerceCommonI18NService()
public void setCommerceCommonI18NService(CommerceCommonI18NService commerceCommonI18NService)
Copyright © 2018 SAP SE. All Rights Reserved.