Class CheckInvoiceRecipientsTask
java.lang.Object
ch.tocco.nice2.optional.order.api.action.invoice.tasks.AbstractOrderGeneratorCheckTask
ch.tocco.nice2.optional.order.impl.action.invoice.tasks.CheckInvoiceRecipientsTask
- All Implemented Interfaces:
OrderGeneratorCheckTask,PersistTask<Tuple2<InvoicePropertiesContribution,Collection<Entity>>, String>
-
Constructor Summary
ConstructorsConstructorDescriptionCheckInvoiceRecipientsTask(InvoiceRecipientService invoiceRecipientService, TextResources textResources, DefaultDisplayService defaultDisplayService) -
Method Summary
Modifier and TypeMethodDescriptionbooleandoesEntityFail(InvoicePropertiesContribution properties, Entity entity) checks if an entity fails the check task this must be overwritten when using the check task in the new client action check tasks may still work in legacy client without this method, but may not call it in theirOrderGeneratorCheckTask.run(CommandContext, InvoicePropertiesContribution, Collection)methodrun(CommandContext commandContext, InvoicePropertiesContribution properties, Collection<Entity> entities) Methods inherited from class ch.tocco.nice2.optional.order.api.action.invoice.tasks.AbstractOrderGeneratorCheckTask
getFailingEntities, getFailingEntityDefaultDisplays, run, streamFailingEntitiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.optional.order.api.action.invoice.tasks.OrderGeneratorCheckTask
mapEntityForDisplayMethods 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
-
CheckInvoiceRecipientsTask
public CheckInvoiceRecipientsTask(InvoiceRecipientService invoiceRecipientService, TextResources textResources, DefaultDisplayService defaultDisplayService)
-
-
Method Details
-
run
public String run(CommandContext commandContext, InvoicePropertiesContribution properties, Collection<Entity> entities) -
doesEntityFail
Description copied from interface:OrderGeneratorCheckTaskchecks if an entity fails the check task this must be overwritten when using the check task in the new client action check tasks may still work in legacy client without this method, but may not call it in theirOrderGeneratorCheckTask.run(CommandContext, InvoicePropertiesContribution, Collection)method- Returns:
- true if entity fails the check, false otherwise
-