pt.digitalis.dif.utils.mail
Class MailAction

java.lang.Object
  extended by pt.digitalis.utils.pools.AbstractAction
      extended by pt.digitalis.dif.utils.mail.MailAction
All Implemented Interfaces:
Serializable, pt.digitalis.utils.pools.IAction

public class MailAction
extends pt.digitalis.utils.pools.AbstractAction

A send mail action object

Author:
Pedro Viegas pviegas@digitalis.pt
See Also:
Serialized Form
Created on:
Feb 18, 2009

Field Summary
 
Fields inherited from class pt.digitalis.utils.pools.AbstractAction
REPORT_IN_EXECUTION
 
Constructor Summary
MailAction()
           
 
Method Summary
protected  pt.digitalis.utils.pools.AbstractAction doExecute()
           
 String getAddressBCC()
          Inspector for the 'adressBCC' attribute.
 String getAddressCC()
          Inspector for the 'adressCC' attribute.
 String getAddressFrom()
          Inspector for the 'adressFrom' attribute.
 String getAddressTo()
          Inspector for the 'adressTo' attribute.
 String getBody()
          Inspector for the 'body' attribute.
 MailSender getMailSenderInstance()
          Inspector for the 'mailSenderInstance' attribute.
 Map<String,Object> getProperties()
           
 String getSubject()
          Inspector for the 'subject' attribute.
 MailType getType()
          Inspector for the 'type' attribute.
 void setAddressBCC(String adressBCC)
          Modifier for the 'adressBCC' attribute.
 void setAddressCC(String adressCC)
          Modifier for the 'adressCC' attribute.
 void setAddressFrom(String adressFrom)
          Modifier for the 'adressFrom' attribute.
 void setAddressTo(String adressTo)
          Modifier for the 'adressTo' attribute.
 void setBody(String body)
          Modifier for the 'body' attribute.
 void setMailSenderInstance(MailSender mailSenderInstance)
          Modifier for the 'mailSenderInstance' attribute.
 void setSubject(String subject)
          Modifier for the 'subject' attribute.
 void setType(MailType type)
          Modifier for the 'type' attribute.
 String toString()
           
 
Methods inherited from class pt.digitalis.utils.pools.AbstractAction
addWaitingThread, cancel, execute, expire, fail, finalizeExecution, getEnrollmentTime, getExecutionDuration, getExecutionEndTime, getExecutionStartTime, getExpirationTime, getId, getPool, getReason, getReasonException, getStatus, getTimeToExpire, getWaitingThreads, hasEnded, isExpired, notifyWaitingThreads, setEnrollmentTime, setExecutionEndTime, setExecutionStartTime, setExpirationTime, setId, setPool, setReason, setReasonException, setStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MailAction

public MailAction()
Method Detail

doExecute

protected pt.digitalis.utils.pools.AbstractAction doExecute()
                                                     throws javax.mail.internet.AddressException,
                                                            javax.mail.MessagingException
Specified by:
doExecute in class pt.digitalis.utils.pools.AbstractAction
Throws:
javax.mail.MessagingException
javax.mail.internet.AddressException
See Also:
AbstractAction.doExecute()

getAddressBCC

public String getAddressBCC()
Inspector for the 'adressBCC' attribute.

Returns:
the adressBCC value

getAddressCC

public String getAddressCC()
Inspector for the 'adressCC' attribute.

Returns:
the adressCC value

getAddressFrom

public String getAddressFrom()
Inspector for the 'adressFrom' attribute.

Returns:
the adressFrom value

getAddressTo

public String getAddressTo()
Inspector for the 'adressTo' attribute.

Returns:
the adressTo value

getBody

public String getBody()
Inspector for the 'body' attribute.

Returns:
the body value

getMailSenderInstance

public MailSender getMailSenderInstance()
Inspector for the 'mailSenderInstance' attribute.

Returns:
the mailSenderInstance value

getProperties

public Map<String,Object> getProperties()
See Also:
IAction.getProperties()

getSubject

public String getSubject()
Inspector for the 'subject' attribute.

Returns:
the subject value

getType

public MailType getType()
Inspector for the 'type' attribute.

Returns:
the type value

setAddressBCC

public void setAddressBCC(String adressBCC)
Modifier for the 'adressBCC' attribute.

Parameters:
adressBCC - the new adressBCC value to set

setAddressCC

public void setAddressCC(String adressCC)
Modifier for the 'adressCC' attribute.

Parameters:
adressCC - the new adressCC value to set

setAddressFrom

public void setAddressFrom(String adressFrom)
Modifier for the 'adressFrom' attribute.

Parameters:
adressFrom - the new adressFrom value to set

setAddressTo

public void setAddressTo(String adressTo)
Modifier for the 'adressTo' attribute.

Parameters:
adressTo - the new adressTo value to set

setBody

public void setBody(String body)
Modifier for the 'body' attribute.

Parameters:
body - the new body value to set

setMailSenderInstance

public void setMailSenderInstance(MailSender mailSenderInstance)
Modifier for the 'mailSenderInstance' attribute.

Parameters:
mailSenderInstance - the new mailSenderInstance value to set

setSubject

public void setSubject(String subject)
Modifier for the 'subject' attribute.

Parameters:
subject - the new subject value to set

setType

public void setType(MailType type)
Modifier for the 'type' attribute.

Parameters:
type - the new type value to set

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.