Class SetFlagMailArchiveInterceptor
java.lang.Object
ch.tocco.nice2.optional.contact.impl.interceptor.SetFlagMailArchiveInterceptor
- All Implemented Interfaces:
MailArchiveInterceptor
@Component
public class SetFlagMailArchiveInterceptor
extends Object
implements MailArchiveInterceptor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
interceptBeforeAdd
(Entity emailArchiveEntity, MailArchive.MailArchiveEntry entry) Intercept before emailArchiveEntity is added to mail archive, mail archive has populated values in emailArchiveEntity at this point.
Note: If this method throws an unchecked exception the emailArchiveEntity will never be committed.
-
Constructor Details
-
SetFlagMailArchiveInterceptor
public SetFlagMailArchiveInterceptor(org.slf4j.Logger log)
-
-
Method Details
-
interceptBeforeAdd
Description copied from interface:MailArchiveInterceptor
Intercept before emailArchiveEntity is added to mail archive, mail archive has populated values in emailArchiveEntity at this point.
Note: If this method throws an unchecked exception the emailArchiveEntity will never be committed.- Specified by:
interceptBeforeAdd
in interfaceMailArchiveInterceptor
- Parameters:
emailArchiveEntity
- the entity to be committedentry
- mail archive entry information
-