Package com.jalios.jcms.mail
Class AbstractMailListener
- java.lang.Object
-
- com.jalios.jcms.mail.AbstractMailListener
-
- All Implemented Interfaces:
MailListener,java.lang.Comparable
- Direct Known Subclasses:
AttachementsMailListener,IncomingMailListener,MemberMailListener,ThreadMailListener
public abstract class AbstractMailListener extends java.lang.Object implements MailListener
- Author:
- Jean-Philippe Encausse
-
-
Field Summary
Fields Modifier and Type Field Description protected intorder
-
Constructor Summary
Constructors Constructor Description AbstractMailListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(java.lang.Object obj)Compare this object with the specified object for order.booleanequals(MailListener obj)Indicates wheter some other object is "equal to" this one.booleanfetchMessage(MailMessage mail, boolean stored, java.util.Map<java.lang.String,java.lang.Object> context)Invoked after a mail was fetch.intgetOrder()Returns object orders value.voidsetOrder(int order)Sets the listener order
-
-
-
Method Detail
-
fetchMessage
public boolean fetchMessage(MailMessage mail, boolean stored, java.util.Map<java.lang.String,java.lang.Object> context)
Description copied from interface:MailListenerInvoked after a mail was fetch.- Specified by:
fetchMessagein interfaceMailListener- Parameters:
mail- the javax.mail.Message fetchedstored- boolean to store MailMessage in JCMScontext- a context used to store information- Returns:
- boolean stored
- See Also:
MailListener.fetchMessage(MailMessage, boolean, Map)
-
getOrder
public final int getOrder()
Returns object orders value.- Returns:
- int object orders value.
-
setOrder
public final void setOrder(int order)
Sets the listener order- Parameters:
order- the order of the listener
-
compareTo
public final int compareTo(java.lang.Object obj)
Compare this object with the specified object for order.- Specified by:
compareToin interfacejava.lang.Comparable- Parameters:
obj- the Object to be compared.- See Also:
Comparable.compareTo(java.lang.Object)
-
equals
public final boolean equals(MailListener obj)
Indicates wheter some other object is "equal to" this one. The comparison is performed with compareTo() method.- Parameters:
obj- the Object to be compared.- Returns:
- true if equal
-
-