Package com.soffid.iam.bpm.mail
Class Mail
- java.lang.Object
-
- com.soffid.iam.bpm.mail.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 Summary
Fields Modifier and Type Field Description protected org.jbpm.graph.exe.ExecutionContext
executionContext
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(String message)
void
error(String message)
void
error(String message, Throwable t)
void
execute(org.jbpm.graph.exe.ExecutionContext executionContext)
String
getActors()
String
getFrom()
org.apache.commons.logging.Log
getLog()
String
getSubject()
String
getTemplate()
String
getText()
String
getTo()
Set<String>
getUsers()
void
initialize()
void
send()
void
send(String fromAddress, Set<javax.mail.internet.InternetAddress> targetAddresses, String subject, String text)
protected void
sendMailInternal(String fromAddress, Set<javax.mail.internet.InternetAddress> targetAddresses, String subject, String text)
void
setActors(String actors)
void
setFrom(String from)
void
setLog(org.apache.commons.logging.Log log)
void
setSubject(String subject)
void
setTemplate(String template)
void
setText(String text)
void
setTo(String to)
-
-
-
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 interfaceorg.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)
-
getUsers
public Set<String> getUsers() throws es.caib.seycon.ng.exception.InternalErrorException, UnsupportedEncodingException
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
UnsupportedEncodingException
-
-