public class MailActionExecuter extends ActionExecuterAbstractBase implements org.springframework.beans.factory.InitializingBean, TestModeable
| Modifier and Type | Class and Description |
|---|---|
static class |
MailActionExecuter.URLHelper |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME
Action executor constants
|
static java.lang.String |
PARAM_FROM |
static java.lang.String |
PARAM_HTML |
static java.lang.String |
PARAM_IGNORE_SEND_FAILURE |
static java.lang.String |
PARAM_SEND_AFTER_COMMIT |
static java.lang.String |
PARAM_SUBJECT |
static java.lang.String |
PARAM_TEMPLATE |
static java.lang.String |
PARAM_TEMPLATE_MODEL |
static java.lang.String |
PARAM_TEXT |
static java.lang.String |
PARAM_TO |
static java.lang.String |
PARAM_TO_MANY |
actionDefinition, applicableTypes, publicActionDISPLAY_LABEL, runtimeActionServicenamePARAM_RESULT| Constructor and Description |
|---|
MailActionExecuter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParameterDefinitions(java.util.List paramList)
Add the parameter definitions
|
void |
afterPropertiesSet()
Initialise bean
|
void |
clearLastTestMessage()
Used when test mode is enabled.
|
protected void |
executeImpl(Action ruleAction,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Send an email message
|
void |
init()
Init method
|
boolean |
isFromEnabled() |
boolean |
isTestMode() |
javax.mail.internet.MimeMessage |
retrieveLastTestMessage()
Returns the most recent message that wasn't sent
because TestMode had been enabled.
|
void |
setAuthenticationService(AuthenticationService authService) |
void |
setAuthorityService(AuthorityService authorityService) |
void |
setFromAddress(java.lang.String fromAddress) |
void |
setFromEnabled(boolean fromEnabled) |
void |
setHeaderEncoding(java.lang.String headerEncoding) |
void |
setMailService(org.springframework.mail.javamail.JavaMailSender javaMailSender) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPersonService(PersonService personService) |
void |
setSendTestMessage(boolean sendTestMessage) |
void |
setServiceRegistry(ServiceRegistry serviceRegistry) |
void |
setSysAdminParams(SysAdminParams sysAdminParams) |
void |
setTemplateService(TemplateService templateService) |
void |
setTestMessageSubject(java.lang.String testMessageSubject) |
void |
setTestMessageText(java.lang.String testMessageText) |
void |
setTestMessageTo(java.lang.String testMessageTo) |
void |
setTestMode(boolean testMode) |
createActionDefinition, execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, isApplicableType, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setPublicAction, setQueueName, setTrackStatuscheckMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getParamDisplayLabel, getParameterDefintions, getTitleKey, setRuntimeActionService, toStringsetBeanNamepublic static final java.lang.String NAME
public static final java.lang.String PARAM_TO
public static final java.lang.String PARAM_TO_MANY
public static final java.lang.String PARAM_SUBJECT
public static final java.lang.String PARAM_TEXT
public static final java.lang.String PARAM_HTML
public static final java.lang.String PARAM_FROM
public static final java.lang.String PARAM_TEMPLATE
public static final java.lang.String PARAM_TEMPLATE_MODEL
public static final java.lang.String PARAM_IGNORE_SEND_FAILURE
public static final java.lang.String PARAM_SEND_AFTER_COMMIT
public void setMailService(org.springframework.mail.javamail.JavaMailSender javaMailSender)
javaMailSender - the java mail senderpublic void setTemplateService(TemplateService templateService)
templateService - the TemplateServicepublic void setPersonService(PersonService personService)
personService - the PersonServicepublic void setAuthenticationService(AuthenticationService authService)
authService - the AuthenticationServicepublic void setServiceRegistry(ServiceRegistry serviceRegistry)
serviceRegistry - the ServiceRegistrypublic void setAuthorityService(AuthorityService authorityService)
authorityService - the AuthorityServicepublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - the NodeService to set.public void setHeaderEncoding(java.lang.String headerEncoding)
headerEncoding - The mail header encoding to set.public void setFromAddress(java.lang.String fromAddress)
fromAddress - The default mail address.public void setSysAdminParams(SysAdminParams sysAdminParams)
public void setTestMessageTo(java.lang.String testMessageTo)
public void setTestMessageSubject(java.lang.String testMessageSubject)
public void setTestMessageText(java.lang.String testMessageText)
public void setSendTestMessage(boolean sendTestMessage)
public void init()
ActionExecuterAbstractBaseinit in class ActionExecuterAbstractBasepublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionprotected void executeImpl(Action ruleAction, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
executeImpl in class ActionExecuterAbstractBaseruleAction - the actionactionedUponNodeRef - the actioned upon nodeAlfrescoRuntimeExeptionprotected void addParameterDefinitions(java.util.List paramList)
addParameterDefinitions in class ParameterizedItemAbstractBaseparamList - the parameter definitions listpublic void setTestMode(boolean testMode)
setTestMode in interface TestModeablepublic boolean isTestMode()
isTestMode in interface TestModeablepublic javax.mail.internet.MimeMessage retrieveLastTestMessage()
public void clearLastTestMessage()
public void setFromEnabled(boolean fromEnabled)
public boolean isFromEnabled()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.