Class UncollectedOrdersJob
- java.lang.Object
-
- de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<UncollectedOrdersCronJobModel>
-
- de.hybris.platform.acceleratorservices.cronjob.UncollectedOrdersJob
-
- All Implemented Interfaces:
JobPerformable<UncollectedOrdersCronJobModel>
public class UncollectedOrdersJob extends AbstractJobPerformable<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 Constructor Description UncollectedOrdersJob()
-
Method Summary
-
Methods inherited from class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
clearAbortRequestedIfNeeded, isAbortable, isPerformable, setFlexibleSearchService, setModelService, setSessionService
-
-
-
-
Method Detail
-
perform
public PerformResult perform(UncollectedOrdersCronJobModel cronJob)
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
protected Converter<java.lang.String,ConsignmentStatus> getStatusConverter()
-
getAcceleratorConsignmentDao
protected AcceleratorConsignmentDao getAcceleratorConsignmentDao()
-
setAcceleratorConsignmentDao
public void setAcceleratorConsignmentDao(AcceleratorConsignmentDao acceleratorConsignmentDao)
-
getUncollectedConsignmentStatuses
protected java.util.Set<java.lang.String> getUncollectedConsignmentStatuses()
-
setUncollectedConsignmentStatuses
public void setUncollectedConsignmentStatuses(java.util.Set<java.lang.String> uncollectedConsignmentStatuses)
-
getReminderUncollectedConsignmentStrategy
protected UncollectedConsignmentsStrategy getReminderUncollectedConsignmentStrategy()
-
setReminderUncollectedConsignmentStrategy
public void setReminderUncollectedConsignmentStrategy(UncollectedConsignmentsStrategy reminderUncollectedConsignmentStrategy)
-
getCustomerServiceUncollectedConsignmentStrategy
protected UncollectedConsignmentsStrategy getCustomerServiceUncollectedConsignmentStrategy()
-
setCustomerServiceUncollectedConsignmentStrategy
public void setCustomerServiceUncollectedConsignmentStrategy(UncollectedConsignmentsStrategy customerServiceUncollectedConsignmentStrategy)
-
-