Class Mail

  • All Implemented Interfaces:
    Serializable, org.jbpm.graph.def.ActionHandler
    Direct Known Subclasses:
    Mail

    public class Mail
    extends Object
    implements org.jbpm.graph.def.ActionHandler
    See Also:
    Serialized Form
    • Field Detail

      • executionContext

        protected org.jbpm.graph.exe.ExecutionContext executionContext
    • Method Detail

      • getActors

        public String getActors()
      • setActors

        public void setActors​(String actors)
      • getTo

        public String getTo()
      • setTo

        public void setTo​(String to)
      • getSubject

        public String getSubject()
      • setSubject

        public void setSubject​(String subject)
      • getText

        public String getText()
      • setText

        public void setText​(String text)
      • getFrom

        public String getFrom()
      • setFrom

        public void setFrom​(String from)
      • getLog

        public org.apache.commons.logging.Log getLog()
      • setLog

        public void setLog​(org.apache.commons.logging.Log log)
      • getTemplate

        public String getTemplate()
      • setTemplate

        public void setTemplate​(String template)
      • initialize

        public void initialize()
      • execute

        public void execute​(org.jbpm.graph.exe.ExecutionContext executionContext)
                     throws es.caib.seycon.ng.exception.InternalErrorException,
                            IOException,
                            javax.mail.internet.AddressException,
                            NamingException,
                            javax.ejb.CreateException
        Specified by:
        execute in interface org.jbpm.graph.def.ActionHandler
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        IOException
        javax.mail.internet.AddressException
        NamingException
        javax.ejb.CreateException
      • send

        public void send()
                  throws es.caib.seycon.ng.exception.InternalErrorException,
                         IOException,
                         javax.mail.internet.AddressException,
                         NamingException,
                         javax.ejb.CreateException
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        IOException
        javax.mail.internet.AddressException
        NamingException
        javax.ejb.CreateException
      • send

        public void send​(String fromAddress,
                         Set<javax.mail.internet.InternetAddress> targetAddresses,
                         String subject,
                         String text)
      • sendMailInternal

        protected void sendMailInternal​(String fromAddress,
                                        Set<javax.mail.internet.InternetAddress> targetAddresses,
                                        String subject,
                                        String text)
                                 throws Exception
        Throws:
        Exception
      • debug

        public void debug​(String message)
      • error

        public void error​(String message)