Class GenerateOutputJobTask
java.lang.Object
ch.tocco.nice2.optional.correspondence.impl.action.tasks.GenerateOutputJobTask
- All Implemented Interfaces:
OptionalTask<Tuple3<Entity,
,String, Optional<Iterable<Entity>>>, OutputJobBuilder> PersistTask<Tuple3<Entity,
String, Optional<Iterable<Entity>>>, OutputJobBuilder>
public class GenerateOutputJobTask
extends Object
implements OptionalTask<Tuple3<Entity,String,Optional<Iterable<Entity>>>,OutputJobBuilder>
Task to generate the OutputJobBuilder for a given Serial Correspondence
Params are wrapped in a Tuple 3:
- Entity: Serial_correspondence Entity for wich the OutputJobBuilder should be generated - String: Subject of the OutputJobBuilder-
Optional<Iterable<Entity>>
: Correspondences. If this param is not set (Optional.empty()), all Correspondences of the given Serial_correspondence are used.-
Constructor Summary
ConstructorDescriptionGenerateOutputJobTask
(PrincipalService principalService, TemplateEngineFactory templateEngineFactory, ConverterEngineFactory converterEngineFactory, L10N l10N, OutputTemplateLessCompiler outputTemplateLessCompiler) -
Method Summary
Modifier and TypeMethodDescriptionMethods 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.OptionalTask
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
-
GenerateOutputJobTask
public GenerateOutputJobTask(PrincipalService principalService, TemplateEngineFactory templateEngineFactory, ConverterEngineFactory converterEngineFactory, L10N l10N, OutputTemplateLessCompiler outputTemplateLessCompiler)
-
-
Method Details
-
doRun
public OutputJobBuilder doRun(Tuple3<Entity, String, throws ExceptionOptional<Iterable<Entity>>> params, CommandContext commandContext) - Specified by:
doRun
in interfaceOptionalTask<Tuple3<Entity,
String, Optional<Iterable<Entity>>>, OutputJobBuilder> - Throws:
Exception
-