public class SendMailFunction extends SendMailFunction
_context, _currentUserProvider, _i18nUtils, _pluginName, _rightManager, _sourceResolver, _userManager, _workflowProvider, BODY_KEY, RIGHTS_KEY, SEND_MAIL, SUBJECT_KEY
_contentHelper, 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 String |
_getContentUri(WorkflowAwareContent content,
Page page,
Site site)
Get the content uri
|
protected Page |
_getPage(WorkflowAwareContent content,
Site site)
Get the page referenced by this content
|
protected Site |
_getSite(WorkflowAwareContent content)
Get the site name
|
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
|
_getContentUri, _getRequest, _getRequestUri, _getUsers, _sendMails, contextualize, execute, getMailSubject, initialize, setPluginInfo
getContent, service
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser
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 contentprotected Site _getSite(WorkflowAwareContent content)
content
- The contentprotected Page _getPage(WorkflowAwareContent content, Site site)
content
- The contentsite
- the siteprotected String _getContentUri(WorkflowAwareContent content, Page page, Site site)
content
- the contentpage
- the referencing page. Can be null.site
- The site