Class ScheduledCartPopulator
- java.lang.Object
-
- de.hybris.platform.b2bacceleratorfacades.order.populators.ScheduledCartPopulator
-
- All Implemented Interfaces:
Populator<CartToOrderCronJobModel,ScheduledCartData>
public class ScheduledCartPopulator extends java.lang.Object implements Populator<CartToOrderCronJobModel,ScheduledCartData>
-
-
Constructor Summary
Constructors Constructor Description ScheduledCartPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddCartData(CartToOrderCronJobModel source, ScheduledCartData prototype)protected voidaddTriggerData(CartToOrderCronJobModel source, ScheduledCartData prototype)protected Converter<CartModel,CartData>getCartConverter()protected java.util.DategetFirstOrderDate(CartToOrderCronJobModel source, ScheduledCartData prototype)Returns the date of the first order placed, if placed, otherwise get the trigger's next ActivationDateprotected java.util.DategetFirstOrderDate(java.util.Collection<OrderModel> orders)Returns the date of the first order placed chronologically.protected Converter<TriggerModel,TriggerData>getTriggerConverter()voidpopulate(CartToOrderCronJobModel source, ScheduledCartData prototype)Populate the target instance with values from the source instance.voidsetCartConverter(Converter<CartModel,CartData> cartConverter)voidsetTriggerConverter(Converter<TriggerModel,TriggerData> triggerConverter)
-
-
-
Method Detail
-
populate
public void populate(CartToOrderCronJobModel source, ScheduledCartData prototype) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<CartToOrderCronJobModel,ScheduledCartData>- Parameters:
source- the source objectprototype- the target to fill- Throws:
ConversionException- if an error occurs
-
getFirstOrderDate
protected java.util.Date getFirstOrderDate(CartToOrderCronJobModel source, ScheduledCartData prototype)
Returns the date of the first order placed, if placed, otherwise get the trigger's next ActivationDate
-
getFirstOrderDate
protected java.util.Date getFirstOrderDate(java.util.Collection<OrderModel> orders)
Returns the date of the first order placed chronologically.
-
addCartData
protected void addCartData(CartToOrderCronJobModel source, ScheduledCartData prototype)
-
addTriggerData
protected void addTriggerData(CartToOrderCronJobModel source, ScheduledCartData prototype)
-
getTriggerConverter
protected Converter<TriggerModel,TriggerData> getTriggerConverter()
-
setTriggerConverter
public void setTriggerConverter(Converter<TriggerModel,TriggerData> triggerConverter)
-
-