public class TemplateMailHelperBean extends Object implements Serializable
Constructor and Description |
---|
TemplateMailHelperBean()
Initialises the bean
|
Modifier and Type | Method and Description |
---|---|
void |
discardTemplate(ActionEvent event)
Action handler called to discard the template from the email body
|
String |
getAutomaticText() |
String |
getBody() |
protected org.springframework.mail.javamail.JavaMailSender |
getMailSender() |
protected org.alfresco.service.cmr.repository.NodeService |
getNodeService() |
String |
getSubject() |
String |
getTemplate() |
String |
getUsingTemplate() |
void |
insertTemplate(ActionEvent event)
Action handler called to insert a template as the email body
|
void |
notifyUser(org.alfresco.service.cmr.repository.NodeRef person,
org.alfresco.service.cmr.repository.NodeRef node,
String from,
String roleText)
Send an email notification to the specified User authority
|
void |
setAutomaticText(String automaticText) |
void |
setBody(String body) |
void |
setMailSender(org.springframework.mail.javamail.JavaMailSender mailSender) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setSubject(String subject) |
void |
setTemplate(String template) |
void |
setUsingTemplate(String usingTemplate) |
public void setMailSender(org.springframework.mail.javamail.JavaMailSender mailSender)
mailSender
- The JavaMailSender to set.protected org.springframework.mail.javamail.JavaMailSender getMailSender()
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- The nodeService to set.protected org.alfresco.service.cmr.repository.NodeService getNodeService()
public void notifyUser(org.alfresco.service.cmr.repository.NodeRef person, org.alfresco.service.cmr.repository.NodeRef node, String from, String roleText)
person
- Person node representing the usernode
- Node they are invited toofrom
- From text messageroleText
- The role display label for the user invite notificationpublic void insertTemplate(ActionEvent event)
public void discardTemplate(ActionEvent event)
public String getBody()
public void setBody(String body)
body
- The email body text to set.public String getSubject()
public void setSubject(String subject)
subject
- The email subject text to set.public String getAutomaticText()
public void setAutomaticText(String automaticText)
automaticText
- The automatic text to set.public String getTemplate()
public void setTemplate(String template)
template
- The email template to set.public String getUsingTemplate()
public void setUsingTemplate(String usingTemplate)
usingTemplate
- Template that has been inserted by a user for the email body.Copyright © 2005–2017 Alfresco Software. All rights reserved.