Class ProcessFreemarkerTemplatesOnCorrespondenceTask
java.lang.Object
ch.tocco.nice2.optional.correspondence.impl.action.ProcessFreemarkerTemplatesOnCorrespondenceTask
- All Implemented Interfaces:
OptionalTask<Tuple3<Entity,
,EntityList, String>, Entity> PersistTask<Tuple3<Entity,
EntityList, String>, Entity>
public class ProcessFreemarkerTemplatesOnCorrespondenceTask
extends Object
implements OptionalTask<Tuple3<Entity,EntityList,String>,Entity>
Generates the template for the
Correspondence
and applies the template to it. i.e set data parameters and run through TemplateEngine
.-
Constructor Summary
ConstructorDescriptionProcessFreemarkerTemplatesOnCorrespondenceTask
(TemplateEngineFactory templateEngineFactory, AddressService addressService, L10N l10N) -
Method Summary
Modifier and TypeMethodDescriptiondoRun
(Tuple3<Entity, EntityList, String> args, CommandContext commandContext) 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.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
-
ProcessFreemarkerTemplatesOnCorrespondenceTask
public ProcessFreemarkerTemplatesOnCorrespondenceTask(TemplateEngineFactory templateEngineFactory, AddressService addressService, L10N l10N)
-
-
Method Details
-
doRun
public Entity doRun(Tuple3<Entity, EntityList, throws ExceptionString> args, CommandContext commandContext) - Specified by:
doRun
in interfaceOptionalTask<Tuple3<Entity,
EntityList, String>, Entity> - Throws:
Exception
-