Class AbstractOrderGeneratorCheckTask
java.lang.Object
ch.tocco.nice2.optional.order.api.action.invoice.tasks.AbstractOrderGeneratorCheckTask
- All Implemented Interfaces:
OrderGeneratorCheckTask
,PersistTask<Tuple2<InvoicePropertiesContribution,
Collection<Entity>>, String>
- Direct Known Subclasses:
CheckBillingPositionsTask
,CheckInvoiceRecipientsTask
,CheckPriceCategoriesTask
,MembershipCheckPriceCategoriesTask
,OrderGeneratorDummyCheckTask
public abstract class AbstractOrderGeneratorCheckTask
extends Object
implements OrderGeneratorCheckTask
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractOrderGeneratorCheckTask
(DefaultDisplayService defaultDisplayService) -
Method Summary
Modifier and TypeMethodDescriptiongetFailingEntities
(InvoicePropertiesContribution properties, Collection<Entity> entities) getFailingEntityDefaultDisplays
(InvoicePropertiesContribution properties, Collection<Entity> entities) final @Nullable String
run
(Optional<Tuple2<InvoicePropertiesContribution, Collection<Entity>>> optional, CommandContext commandContext) streamFailingEntities
(InvoicePropertiesContribution properties, Collection<Entity> entities) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.optional.order.api.action.invoice.tasks.OrderGeneratorCheckTask
doesEntityFail, mapEntityForDisplay, run
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
AbstractOrderGeneratorCheckTask
-
-
Method Details
-
run
@Nullable public final @Nullable String run(Optional<Tuple2<InvoicePropertiesContribution, Collection<Entity>>> optional, CommandContext commandContext) throws Exception- Specified by:
run
in interfacePersistTask<Tuple2<InvoicePropertiesContribution,
Collection<Entity>>, String> - Throws:
Exception
-
getFailingEntities
public List<Entity> getFailingEntities(InvoicePropertiesContribution properties, Collection<Entity> entities) - Specified by:
getFailingEntities
in interfaceOrderGeneratorCheckTask
-
getFailingEntityDefaultDisplays
protected List<String> getFailingEntityDefaultDisplays(InvoicePropertiesContribution properties, Collection<Entity> entities) -
streamFailingEntities
protected Stream<Entity> streamFailingEntities(InvoicePropertiesContribution properties, Collection<Entity> entities)
-