Class MergeOrdersTask
java.lang.Object
ch.tocco.nice2.optional.order.api.action.invoice.tasks.AbstractOrderGeneratorTask
ch.tocco.nice2.optional.order.spi.action.invoice.tasks.MergeOrdersTask
- All Implemented Interfaces:
OrderGeneratorTask, PersistTask<Tuple3<Entity, InvoicePropertiesContribution, Collection<OrderGeneratorBean>>, Tuple3<Entity, InvoicePropertiesContribution, Collection<OrderGeneratorBean>>>
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<OrderGeneratorBean> findEqualOrders(Entity order, List<OrderGeneratorBean> beans, int currentIndex, Entity settings, OrderGeneratorBean beanToCompare) voidrun(CommandContext commandContext, Entity settings, InvoicePropertiesContribution properties, Collection<OrderGeneratorBean> beans) voidsetContributions(List<MergeTasksContribution> contributions) Methods inherited from class AbstractOrderGeneratorTask
runMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Field Details
-
fieldsToCheckForEquality
-
relationsToCheckForEquality
-
-
Constructor Details
-
MergeOrdersTask
-
-
Method Details
-
run
public void run(CommandContext commandContext, Entity settings, InvoicePropertiesContribution properties, Collection<OrderGeneratorBean> beans) -
findEqualOrders
protected List<OrderGeneratorBean> findEqualOrders(Entity order, List<OrderGeneratorBean> beans, int currentIndex, Entity settings, OrderGeneratorBean beanToCompare) -
setContributions
-