Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.mail.listener.action
Class CheckMailUnicity

java.lang.Object
  extended by org.nuxeo.ecm.platform.mail.listener.action.AbstractMailAction
      extended by org.nuxeo.ecm.platform.mail.listener.action.CheckMailUnicity
All Implemented Interfaces:
MessageAction

public class CheckMailUnicity
extends AbstractMailAction

This class checks whether a mail is a duplicate of a previously stored mail document. The mail is considered a duplicate if the sender, sending_date, title, text and containing folder are the same. This should fit for most uses.

Author:
Christophe Capon, Laurent Doguin

Field Summary
static java.lang.String MAIL_SEARCH_QUERY
           
 
Constructor Summary
CheckMailUnicity()
           
 
Method Summary
 boolean execute(ExecutionContext context)
          Executes one action.
 
Methods inherited from class org.nuxeo.ecm.platform.mail.listener.action.AbstractMailAction
reset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIL_SEARCH_QUERY

public static final java.lang.String MAIL_SEARCH_QUERY
See Also:
Constant Field Values
Constructor Detail

CheckMailUnicity

public CheckMailUnicity()
Method Detail

execute

public boolean execute(ExecutionContext context)
                throws java.lang.Exception
Description copied from interface: MessageAction
Executes one action.

If it returns false, the following actions from the pipe are not executed.

Specified by:
execute in interface MessageAction
Overrides:
execute in class AbstractMailAction
Throws:
java.lang.Exception
See Also:
ExecutionContext

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.