ejel
Class EmailAccountNeededEventArgs

java.lang.Object
  extended by ejel.EventArgs
      extended by ejel.EmailAccountNeededEventArgs

public class EmailAccountNeededEventArgs
extends EventArgs

Encapsulate all the params appropriate for the EventID.EID_EMAIL_ACCOUNT_NEEDED which occurs when all the email accounts are disabled and the sender engine needs a new email account to continue the mass mailing operation. If the listener does not provide a new email account or activate a used one, the sender engine will abort the operation or continue raising the event.


Constructor Summary
EmailAccountNeededEventArgs()
          EmailAccountNeededEventArgs default constructor
 
Method Summary
 boolean getAbortStatus()
          Gets the current abort status
 EmailAccount getNewEmailAccount()
          Gets the EmailAccount object if set or null
 void setAbortStatus(boolean abort)
          Tells the sender engine to abort or not the current mass mailing operation
 void setNewEmailAccount(EmailAccount account)
          Sets a new EmailAccount object that will be used to continue sending the email message to recipients.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailAccountNeededEventArgs

public EmailAccountNeededEventArgs()
EmailAccountNeededEventArgs default constructor

Method Detail

setAbortStatus

public void setAbortStatus(boolean abort)
Tells the sender engine to abort or not the current mass mailing operation

Parameters:
abort - Set to true to abort the current mass mailing operation

getAbortStatus

public boolean getAbortStatus()
Gets the current abort status

Returns:
the current abort status

setNewEmailAccount

public void setNewEmailAccount(EmailAccount account)
                        throws java.lang.IllegalArgumentException
Sets a new EmailAccount object that will be used to continue sending the email message to recipients.

Parameters:
account - A valid EmailAccount object
Throws:
java.lang.IllegalArgumentException

getNewEmailAccount

public EmailAccount getNewEmailAccount()
Gets the EmailAccount object if set or null

Returns:
An EmailAccount object if set or null