Class MultipleAddressTask
java.lang.Object
ch.tocco.nice2.optional.address.impl.MultipleAddressTask
This class is respsonsible for creating salutation and address strings for a list of
user entities. The precondition is, that all users are linked to the same address
entity. The output depends on the lookup entity "Collective_salutation" that is linked
from the single address entity. It may either carry a template string which is then
evaluated using the
TemplateEngine
, or if the boolean "single" is set to `true`,
the names of the users are concatenated into a single line.-
Method Summary
Modifier and TypeMethodDescriptionstatic PersistTask
<Iterable<Entity>, String> forAddressString
(AddressServiceImpl addressService, TemplateEngine templateEngine, AddressService.AddressLook look, AddressService.AddressType type) static PersistTask
<Iterable<Entity>, String> forSalutation
(AddressServiceImpl addressService, TemplateEngine templateEngine, @Nullable Entity sender)
-
Method Details
-
forSalutation
public static PersistTask<Iterable<Entity>,String> forSalutation(AddressServiceImpl addressService, TemplateEngine templateEngine, @Nullable @Nullable Entity sender) -
forAddressString
public static PersistTask<Iterable<Entity>,String> forAddressString(AddressServiceImpl addressService, TemplateEngine templateEngine, AddressService.AddressLook look, AddressService.AddressType type)
-