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.ExecutionContextexecutionContext
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(String message)voiderror(String message)voiderror(String message, Throwable t)voidexecute(org.jbpm.graph.exe.ExecutionContext executionContext)StringgetActors()StringgetFrom()org.apache.commons.logging.LoggetLog()StringgetSubject()StringgetTemplate()StringgetText()StringgetTo()Set<String>getUsers()voidinitialize()voidsend()voidsend(String fromAddress, Set<javax.mail.internet.InternetAddress> targetAddresses, String subject, String text)protected voidsendMailInternal(String fromAddress, Set<javax.mail.internet.InternetAddress> targetAddresses, String subject, String text)voidsetActors(String actors)voidsetFrom(String from)voidsetLog(org.apache.commons.logging.Log log)voidsetSubject(String subject)voidsetTemplate(String template)voidsetText(String text)voidsetTo(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:
executein interfaceorg.jbpm.graph.def.ActionHandler- Throws:
es.caib.seycon.ng.exception.InternalErrorExceptionIOExceptionjavax.mail.internet.AddressExceptionNamingExceptionjavax.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.InternalErrorExceptionIOExceptionjavax.mail.internet.AddressExceptionNamingExceptionjavax.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.InternalErrorExceptionUnsupportedEncodingException
-
-