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 Details

    • SetFlagMailArchiveInterceptor

      public SetFlagMailArchiveInterceptor(org.slf4j.Logger log)
  • Method Details

    • interceptBeforeAdd

      public void interceptBeforeAdd(Entity emailArchiveEntity, MailArchive.MailArchiveEntry entry)
      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 interface MailArchiveInterceptor
      Parameters:
      emailArchiveEntity - the entity to be committed
      entry - mail archive entry information