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
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected SiteMessageModelcreateSiteMessage(CouponNotificationModel notification, NotificationType notificationType) protected abstract CouponNotificationTaskcreateTask(Map<String, ItemModel> data) protected CouponNotificationDaoprotected CustomerCouponDaoperform(CronJobModel job) Executes cronjob and sends coupon notification when a coupon will take effect or expire soonprotected voidsendCouponNotificaiton(CouponNotificationModel couponNotification, NotificationType notificationType, SiteMessageModel message) protected voidsendNotification(CouponNotificationModel notification, org.joda.time.DateTime effectiveDay, org.joda.time.DateTime expireDay, Map<CustomerCouponModel, SiteMessageModel> messages) voidsetCouponNotificationDao(CouponNotificationDao couponNotificationDao) voidsetCustomerCouponDao(CustomerCouponDao customerCouponDao) Methods inherited from class de.hybris.platform.notificationservices.cronjob.AbstractNotificationJob
getCommerceCommonI18NService, getNotificationService, getSiteMessageService, getTaskExecutor, setCommerceCommonI18NService, setNotificationService, setSiteMessageService, setTaskExecutorMethods inherited from class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
clearAbortRequestedIfNeeded, isAbortable, isPerformable, setFlexibleSearchService, setModelService, setSessionService
-
Constructor Details
-
AbstractCouponNotificationJob
public AbstractCouponNotificationJob()
-
-
Method Details
-
perform
Executes cronjob and sends coupon notification when a coupon will take effect or expire soon- Specified by:
performin interfaceJobPerformable<CronJobModel>- Specified by:
performin 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, Map<CustomerCouponModel, SiteMessageModel> messages) -
createSiteMessage
protected SiteMessageModel createSiteMessage(CouponNotificationModel notification, NotificationType notificationType) -
sendCouponNotificaiton
protected void sendCouponNotificaiton(CouponNotificationModel couponNotification, NotificationType notificationType, SiteMessageModel message) -
createTask
-
getCustomerCouponDao
-
setCustomerCouponDao
-
getCouponNotificationDao
-
setCouponNotificationDao
-