Class QuoteToExpireSoonJobPerformable
java.lang.Object
de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<CronJobModel>
de.hybris.platform.yacceleratorcore.job.QuoteToExpireSoonJobPerformable
- All Implemented Interfaces:
JobPerformable<CronJobModel>
The job finds quotes that qualify for
QuoteNotificationType.EXPIRING_SOON email notification. We can specify
when to send the notification by specifying the number of days left to quote expiry
DAYS_TO_EXPIRE. A quote qualifies for the notification if it is in
QuoteState.BUYER_OFFER state and expires in DAYS_TO_EXPIRE days from the current date (Set on
AbstractOrderModel.EXPIRATIONTIME).- Since:
- 6.4
-
Field Summary
FieldsFields inherited from class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
flexibleSearchService, modelService, sessionService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CommerceQuoteDaoprotected ConfigurationServiceprotected LocalDateTimeprotected EventServiceprotected Set<QuoteState>protected TimeServiceperform(CronJobModel cronJob) The execution body for aServicelayerJob.protected voidpublishQuoteToExpireSoonEvent(QuoteModel quoteModel) voidsetCommerceQuoteDao(CommerceQuoteDao commerceQuoteDao) voidsetConfigurationService(ConfigurationService configurationService) voidsetEventService(EventService eventService) voidsetSupportedQuoteStatuses(Set<QuoteState> supportedQuoteStatuses) voidsetTimeService(TimeService timeService) protected DatetoDate(LocalDateTime localDateTime) Methods inherited from class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
clearAbortRequestedIfNeeded, isAbortable, isPerformable, setFlexibleSearchService, setModelService, setSessionService
-
Field Details
-
DAYS_TO_EXPIRE
- See Also:
-
DEFAULT_DAYS_TO_EXPIRE
protected static final int DEFAULT_DAYS_TO_EXPIRE- See Also:
-
-
Constructor Details
-
QuoteToExpireSoonJobPerformable
public QuoteToExpireSoonJobPerformable()
-
-
Method Details
-
perform
Description copied from interface:JobPerformableThe execution body for aServicelayerJob. 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.- Specified by:
performin interfaceJobPerformable<CronJobModel>- Specified by:
performin classAbstractJobPerformable<CronJobModel>- Parameters:
cronJob- the related CronJob in whose context the execution will be performed.- Returns:
- a
PerformResultthat indicates whether theexecutionwas successfully executed or not and has finished or not.
-
publishQuoteToExpireSoonEvent
-
toDate
-
getCurrentDateTime
-
getSupportedQuoteStatuses
-
setSupportedQuoteStatuses
-
getCommerceQuoteDao
-
setCommerceQuoteDao
-
getEventService
-
setEventService
-
getConfigurationService
-
setConfigurationService
-
getTimeService
-
setTimeService
-