public abstract class AbstractCouponNotificationJob extends AbstractJobPerformable<CronJobModel>
flexibleSearchService, modelService, sessionService| Constructor and Description |
|---|
AbstractCouponNotificationJob() |
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 void sendNotification(CouponNotificationModel notification, DateTime effectiveDay, DateTime expireDay, java.util.Map<CustomerCouponModel,SiteMessageModel> messages)
protected SiteMessageModel createSiteMessage(CouponNotificationModel notification, NotificationType notificationType)
protected void sendCouponNotificaiton(CouponNotificationModel couponNotification, NotificationType notificationType, SiteMessageModel message)
protected abstract CouponNotificationTask createTask(java.util.Map<java.lang.String,ItemModel> data)
protected CustomerCouponDao getCustomerCouponDao()
public void setCustomerCouponDao(CustomerCouponDao customerCouponDao)
public void setTaskExecutor(TaskExecutor taskExecutor)
protected TaskExecutor getTaskExecutor()
protected NotificationService getNotificationService()
public void setNotificationService(NotificationService notificationService)
protected CouponNotificationDao getCouponNotificationDao()
public void setCouponNotificationDao(CouponNotificationDao couponNotificationDao)
protected SiteMessageService getSiteMessageService()
public void setSiteMessageService(SiteMessageService siteMessageService)
protected CommerceCommonI18NService getCommerceCommonI18NService()
public void setCommerceCommonI18NService(CommerceCommonI18NService commerceCommonI18NService)
Copyright © 2018 SAP SE. All Rights Reserved.