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