Class MailArchiveImpl
java.lang.Object
ch.tocco.nice2.messaging.mail.impl.MailArchiveImpl
- All Implemented Interfaces:
MailArchive
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.messaging.mail.api.MailArchive
MailArchive.AttachmentId, MailArchive.MailArchiveEntry
-
Constructor Summary
ConstructorDescriptionMailArchiveImpl
(org.slf4j.Logger log, Context context, NiceDataModel dataModel, EntityDefaultValueService entityDefaultValueService, MailArchiveAttachmentService mailArchiveAttachmentService, PrincipalService principalService, QueryBuilderFactory queryBuilderFactory, CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture
<EntityId> add
(MailArchive.MailArchiveEntry mailArchiveEntry) Add an entry to the MailArchive.void
addAttachment
(UUID taskUuid, Attachment attachment) Add attachments which are referenced inMailArchive.MailArchiveEntry.getAttachmentIds()
.void
setEmailArchiveTechnicalRelations
(List<String> emailArchiveTechnicalRelations) void
setMailArchiveInterceptors
(List<MailArchiveInterceptor> interceptors)
-
Constructor Details
-
MailArchiveImpl
public MailArchiveImpl(org.slf4j.Logger log, Context context, NiceDataModel dataModel, EntityDefaultValueService entityDefaultValueService, MailArchiveAttachmentService mailArchiveAttachmentService, PrincipalService principalService, QueryBuilderFactory queryBuilderFactory, CommandExecutor commandExecutor)
-
-
Method Details
-
add
public com.google.common.util.concurrent.ListenableFuture<EntityId> add(MailArchive.MailArchiveEntry mailArchiveEntry) Description copied from interface:MailArchive
Add an entry to the MailArchive. The attachments inMailArchive.MailArchiveEntry.getAttachmentIds()
have to be added to the archive before this method is called (usingMailArchive.addAttachment(UUID, Attachment)
.- Specified by:
add
in interfaceMailArchive
- Parameters:
mailArchiveEntry
- seeMailArchive.MailArchiveEntry
to build the mailArchiveEntry parameter for this method
-
addAttachment
Description copied from interface:MailArchive
Add attachments which are referenced inMailArchive.MailArchiveEntry.getAttachmentIds()
. The attachments have to be added, beforeMailArchive.add(MailArchiveEntry)
is called.- Specified by:
addAttachment
in interfaceMailArchive
- Parameters:
taskUuid
-attachment
-
-
setMailArchiveInterceptors
@Autowired(required=false) public void setMailArchiveInterceptors(List<MailArchiveInterceptor> interceptors) -
setEmailArchiveTechnicalRelations
-