Class UncollectedOrdersJob
java.lang.Object
de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<UncollectedOrdersCronJobModel>
de.hybris.platform.acceleratorservices.cronjob.UncollectedOrdersJob
- All Implemented Interfaces:
JobPerformable<UncollectedOrdersCronJobModel>
Job reviews existing open orders and looks for uncollected pick up consignments. Then sends reminder email or moves
entry to customers service if time threshold has been crossed.
-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
flexibleSearchService, modelService, sessionService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AcceleratorConsignmentDaoprotected UncollectedConsignmentsStrategyprotected UncollectedConsignmentsStrategyprotected Converter<String,ConsignmentStatus> perform(UncollectedOrdersCronJobModel cronJob) The execution body for aServicelayerJob.voidsetAcceleratorConsignmentDao(AcceleratorConsignmentDao acceleratorConsignmentDao) voidsetCustomerServiceUncollectedConsignmentStrategy(UncollectedConsignmentsStrategy customerServiceUncollectedConsignmentStrategy) voidsetReminderUncollectedConsignmentStrategy(UncollectedConsignmentsStrategy reminderUncollectedConsignmentStrategy) voidsetUncollectedConsignmentStatuses(Set<String> uncollectedConsignmentStatuses) Methods inherited from class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
clearAbortRequestedIfNeeded, isAbortable, isPerformable, setFlexibleSearchService, setModelService, setSessionService
-
Constructor Details
-
UncollectedOrdersJob
public UncollectedOrdersJob()
-
-
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<UncollectedOrdersCronJobModel>- Specified by:
performin classAbstractJobPerformable<UncollectedOrdersCronJobModel>- 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.
-
getStatusConverter
-
getAcceleratorConsignmentDao
-
setAcceleratorConsignmentDao
-
getUncollectedConsignmentStatuses
-
setUncollectedConsignmentStatuses
-
getReminderUncollectedConsignmentStrategy
-
setReminderUncollectedConsignmentStrategy
public void setReminderUncollectedConsignmentStrategy(UncollectedConsignmentsStrategy reminderUncollectedConsignmentStrategy) -
getCustomerServiceUncollectedConsignmentStrategy
-
setCustomerServiceUncollectedConsignmentStrategy
public void setCustomerServiceUncollectedConsignmentStrategy(UncollectedConsignmentsStrategy customerServiceUncollectedConsignmentStrategy)
-