Class OutputJobMailAttachments
java.lang.Object
ch.tocco.nice2.optional.address.impl.action.mail.OutputJobMailAttachments
- All Implemented Interfaces:
MailBuilderAddon
Adds the documents of an output job as attachments to the mail.
This applies only if the email actions is invoked from the `Output_job` entity.
-
Constructor Summary
ConstructorsConstructorDescriptionOutputJobMailAttachments
(org.slf4j.Logger log, OutputCenterService outputCenter, MailArchive mailArchive, TimezoneResolverService timezoneResolverService, Context context, DefaultDisplayService defaultDisplayService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildMail
(Mail mail, EntityList baseData, Entity receiver) here custom logic can be implemented to modify theMail
getReadonlyAttachments
(PrimaryKeyList selection) optional method to add show fake attachments in the frontend.modifyFormProperties
(FormProperties formProperties, PrimaryKeyList selection) optional method for modifying the form properties based on the selectionvoid
setCopyingRelations
(List<String> copyingRelations) void
setRecipientPaths
(List<OutputJobMailRecipientPaths> recipientPaths)
-
Constructor Details
-
OutputJobMailAttachments
public OutputJobMailAttachments(org.slf4j.Logger log, OutputCenterService outputCenter, MailArchive mailArchive, TimezoneResolverService timezoneResolverService, Context context, DefaultDisplayService defaultDisplayService)
-
-
Method Details
-
getReadonlyAttachments
Description copied from interface:MailBuilderAddon
optional method to add show fake attachments in the frontend. inMailBuilderAddon.buildMail(Mail, EntityList, Entity)
there must be a custom logic which adds the attachment manually to the mail.- Specified by:
getReadonlyAttachments
in interfaceMailBuilderAddon
-
modifyFormProperties
Description copied from interface:MailBuilderAddon
optional method for modifying the form properties based on the selection- Specified by:
modifyFormProperties
in interfaceMailBuilderAddon
-
buildMail
Description copied from interface:MailBuilderAddon
here custom logic can be implemented to modify theMail
- Specified by:
buildMail
in interfaceMailBuilderAddon
-
setCopyingRelations
-
setRecipientPaths
@Autowired(required=false) public void setRecipientPaths(List<OutputJobMailRecipientPaths> recipientPaths)
-