public class SendMailFunction extends SendMailFunction
_currentUserProvider, _i18nUtils, _pluginName, _rightManager, _sourceResolver, _userManager, _workflowProvider, BODY_KEY, RIGHTS_KEY, SEND_MAIL, SUBJECT_KEY
CONTENT_KEY
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY
Constructor and Description |
---|
SendMailFunction() |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
getBodyI18nParams(User user,
WorkflowAwareContent content)
Get the i18n parameters of mail body text
|
protected String |
getMailBody(String bodyI18nKey,
User user,
WorkflowAwareContent content,
Map transientVars)
Get the text body of mail
|
protected List<String> |
getSubjectI18nParams(User user,
WorkflowAwareContent content)
Get the i18n parameters of mail subject
|
_getUsers, _sendMails, execute, getMailSubject, initialize, setPluginInfo
getContent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser, service
public SendMailFunction()
protected List<String> getSubjectI18nParams(User user, WorkflowAwareContent content)
SendMailFunction
getSubjectI18nParams
in class SendMailFunction
user
- the callercontent
- the contentprotected String getMailBody(String bodyI18nKey, User user, WorkflowAwareContent content, Map transientVars)
SendMailFunction
getMailBody
in class SendMailFunction
bodyI18nKey
- the i18n key to use for bodyuser
- the callercontent
- the contenttransientVars
- the transient variablesprotected List<String> getBodyI18nParams(User user, WorkflowAwareContent content)
SendMailFunction
getBodyI18nParams
in class SendMailFunction
user
- the callercontent
- the content