Class EbillRecipientValidationTask
java.lang.Object
ch.tocco.nice2.persist.core.api.exec.AbstractPartitionedPersistTask<EbillRecipientValidationTask.RecipientValidateInput,Entity,Entity>
ch.tocco.nice2.optional.einvoicingpostfinance.impl.action.validate.EbillRecipientValidationTask
- All Implemented Interfaces:
PersistTask<Iterable<EbillRecipientValidationTask.RecipientValidateInput>,
Iterable<Entity>>
public class EbillRecipientValidationTask
extends AbstractPartitionedPersistTask<EbillRecipientValidationTask.RecipientValidateInput,Entity,Entity>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
-
Constructor Summary
ConstructorsConstructorDescriptionEbillRecipientValidationTask
(PersistenceService persistenceService, PostfinanceService postfinanceService, EbillRecipientLogService recipientLogService, Consumer<EbillRecipientValidationTask.RecipientValidateInput> progressConsumer, org.slf4j.Logger log, PrimaryKey billerKey) -
Method Summary
Modifier and TypeMethodDescriptionCreate a function that creates an instance of Z.run
(Optional<Iterable<EbillRecipientValidationTask.RecipientValidateInput>> recipientValidateInputs, CommandContext commandContext) Methods inherited from class ch.tocco.nice2.persist.core.api.exec.AbstractPartitionedPersistTask
getTaskData, partition, partition, partition
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.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
EbillRecipientValidationTask
public EbillRecipientValidationTask(PersistenceService persistenceService, PostfinanceService postfinanceService, EbillRecipientLogService recipientLogService, Consumer<EbillRecipientValidationTask.RecipientValidateInput> progressConsumer, org.slf4j.Logger log, PrimaryKey billerKey)
-
-
Method Details
-
createTaskData
Description copied from class:AbstractPartitionedPersistTask
Create a function that creates an instance of Z. This function is called once for each context and should be used to load entities (or otherContext
related objects) which are used in every iteration.- Specified by:
createTaskData
in classAbstractPartitionedPersistTask<EbillRecipientValidationTask.RecipientValidateInput,
Entity, Entity>
-
run
@Nullable public @Nullable Iterable<Entity> run(Optional<Iterable<EbillRecipientValidationTask.RecipientValidateInput>> recipientValidateInputs, CommandContext commandContext) throws Exception - Throws:
Exception
-