Class AbstractCouponNotificationJob
- java.lang.Object
-
- de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<CronJobModel>
-
- de.hybris.platform.notificationservices.cronjob.AbstractNotificationJob
-
- de.hybris.platform.customercouponservices.cronjob.AbstractCouponNotificationJob
-
- All Implemented Interfaces:
JobPerformable<CronJobModel>
- Direct Known Subclasses:
CouponNotificationJob
public abstract class AbstractCouponNotificationJob extends AbstractNotificationJob
Sends coupon notification to the customer when a customer coupon will take effect or expire soon
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
flexibleSearchService, modelService, sessionService
-
-
Constructor Summary
Constructors Constructor Description AbstractCouponNotificationJob()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected SiteMessageModel
createSiteMessage(CouponNotificationModel notification, NotificationType notificationType)
protected abstract CouponNotificationTask
createTask(java.util.Map<java.lang.String,ItemModel> data)
protected CouponNotificationDao
getCouponNotificationDao()
protected CustomerCouponDao
getCustomerCouponDao()
PerformResult
perform(CronJobModel job)
Executes cronjob and sends coupon notification when a coupon will take effect or expire soonprotected void
sendCouponNotificaiton(CouponNotificationModel couponNotification, NotificationType notificationType, SiteMessageModel message)
protected void
sendNotification(CouponNotificationModel notification, org.joda.time.DateTime effectiveDay, org.joda.time.DateTime expireDay, java.util.Map<CustomerCouponModel,SiteMessageModel> messages)
void
setCouponNotificationDao(CouponNotificationDao couponNotificationDao)
void
setCustomerCouponDao(CustomerCouponDao customerCouponDao)
-
Methods inherited from class de.hybris.platform.notificationservices.cronjob.AbstractNotificationJob
getCommerceCommonI18NService, getNotificationService, getSiteMessageService, getTaskExecutor, setCommerceCommonI18NService, setNotificationService, setSiteMessageService, setTaskExecutor
-
Methods inherited from class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
clearAbortRequestedIfNeeded, isAbortable, isPerformable, setFlexibleSearchService, setModelService, setSessionService
-
-
-
-
Method Detail
-
perform
public PerformResult perform(CronJobModel job)
Executes cronjob and sends coupon notification when a coupon will take effect or expire soon- Specified by:
perform
in interfaceJobPerformable<CronJobModel>
- Specified by:
perform
in classAbstractJobPerformable<CronJobModel>
- Parameters:
job
- cronjob model- Returns:
- the cronjob execution result
-
sendNotification
protected void sendNotification(CouponNotificationModel notification, org.joda.time.DateTime effectiveDay, org.joda.time.DateTime expireDay, java.util.Map<CustomerCouponModel,SiteMessageModel> messages)
-
createSiteMessage
protected SiteMessageModel createSiteMessage(CouponNotificationModel notification, NotificationType notificationType)
-
sendCouponNotificaiton
protected void sendCouponNotificaiton(CouponNotificationModel couponNotification, NotificationType notificationType, SiteMessageModel message)
-
createTask
protected abstract CouponNotificationTask createTask(java.util.Map<java.lang.String,ItemModel> data)
-
getCustomerCouponDao
protected CustomerCouponDao getCustomerCouponDao()
-
setCustomerCouponDao
public void setCustomerCouponDao(CustomerCouponDao customerCouponDao)
-
getCouponNotificationDao
protected CouponNotificationDao getCouponNotificationDao()
-
setCouponNotificationDao
public void setCouponNotificationDao(CouponNotificationDao couponNotificationDao)
-
-