Class ScheduledCartPopulator
java.lang.Object
de.hybris.platform.b2bacceleratorfacades.order.populators.ScheduledCartPopulator
- All Implemented Interfaces:
Populator<CartToOrderCronJobModel,ScheduledCartData>
public class ScheduledCartPopulator
extends Object
implements Populator<CartToOrderCronJobModel,ScheduledCartData>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCartData(CartToOrderCronJobModel source, ScheduledCartData prototype) protected voidaddTriggerData(CartToOrderCronJobModel source, ScheduledCartData prototype) protected DategetFirstOrderDate(CartToOrderCronJobModel source, ScheduledCartData prototype) Returns the date of the first order placed, if placed, otherwise get the trigger's next ActivationDateprotected DategetFirstOrderDate(Collection<OrderModel> orders) Returns the date of the first order placed chronologically.protected Converter<TriggerModel,TriggerData> 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)
-
Constructor Details
-
ScheduledCartPopulator
public ScheduledCartPopulator()
-
-
Method Details
-
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
Returns the date of the first order placed, if placed, otherwise get the trigger's next ActivationDate -
getFirstOrderDate
Returns the date of the first order placed chronologically. -
addCartData
-
addTriggerData
-
getCartConverter
-
setCartConverter
-
getTriggerConverter
-
setTriggerConverter
-