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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinterceptBeforeAdd(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:MailArchiveInterceptorIntercept 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:
interceptBeforeAddin interfaceMailArchiveInterceptor- Parameters:
emailArchiveEntity- the entity to be committedentry- mail archive entry information
-