Class MailStoreWorker
java.lang.Object
ch.tocco.nice2.optional.mailintegration.spi.AbstractMailWorker
ch.tocco.nice2.optional.mailintegration.impl.userbase.MailStoreWorker
- All Implemented Interfaces:
MailWorker
Stores the mail in "Email_archive" using the
MailArchive
service. Looks for any mail
in the archive that is refered to by the new mail and sets relations accordingly.-
Field Summary
Fields inherited from class ch.tocco.nice2.optional.mailintegration.spi.AbstractMailWorker
DUPLICATE_MAIL_PROPERTY
-
Constructor Summary
ConstructorDescriptionMailStoreWorker
(org.slf4j.Logger log, Context context, DataModel dataModel, MailArchive mailArchive) -
Method Summary
Modifier and TypeMethodDescriptionvoid
perform
(IncomeMail mail, MailWorkerContext mailContext) Called for each incoming mail.void
setRelationsToSkip
(List<String> skip) Methods inherited from class ch.tocco.nice2.optional.mailintegration.spi.AbstractMailWorker
finish, init
-
Constructor Details
-
MailStoreWorker
public MailStoreWorker(org.slf4j.Logger log, Context context, DataModel dataModel, MailArchive mailArchive)
-
-
Method Details
-
perform
Description copied from interface:MailWorker
Called for each incoming mail. The context can be used for communication between workers. It is constructed atMailWorker.init(MailWorkerConfig)
time and passed to each worker. This method is invoked during an open connection to the mailbox. This method may throw a runtime exception indicating a non-recoverable error. In this case remaining workers are not invoked and the mail is not deleted from the mailbox. -
setRelationsToSkip
-