Package org.ametys.cms.workflow
Class SendMailToUserFunction
- java.lang.Object
-
- org.ametys.plugins.workflow.AbstractWorkflowComponent
-
- org.ametys.cms.workflow.AbstractContentWorkflowComponent
-
- org.ametys.cms.workflow.SendMailFunction
-
- org.ametys.cms.workflow.SendMailToUserFunction
-
- All Implemented Interfaces:
com.opensymphony.workflow.FunctionProvider
,PluginAware
,Initializable
,Contextualizable
,LogEnabled
,Serviceable
public class SendMailToUserFunction extends SendMailFunction
OS workflow function to send mail after an action is triggered.
-
-
Field Summary
-
Fields inherited from class org.ametys.cms.workflow.SendMailFunction
_context, _currentUserProvider, _i18nUtils, _pluginName, _rightManager, _sourceResolver, _userManager, _workflowProvider, BODY_KEY, RIGHTS_KEY, SEND_MAIL, SUBJECT_KEY
-
Fields inherited from class org.ametys.cms.workflow.AbstractContentWorkflowComponent
_contentHelper, CONTENT_KEY, HAS_CHANGED_KEY
-
Fields inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY
-
-
Constructor Summary
Constructors Constructor Description SendMailToUserFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<UserIdentity>
_getUsers(WorkflowAwareContent content, Set<String> rights)
Get the user logins.-
Methods inherited from class org.ametys.cms.workflow.SendMailFunction
_getContentUri, _getRequest, _getRequestUri, _sendMails, contextualize, execute, getBodyI18nParams, getCaller, getMailBody, getMailSubject, getRecipients, getSender, getSubjectI18nParams, initialize, setPluginInfo
-
Methods inherited from class org.ametys.cms.workflow.AbstractContentWorkflowComponent
getContent, service
-
Methods inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser
-
-
-
-
Constructor Detail
-
SendMailToUserFunction
public SendMailToUserFunction()
-
-
Method Detail
-
_getUsers
protected Set<UserIdentity> _getUsers(WorkflowAwareContent content, Set<String> rights) throws com.opensymphony.workflow.WorkflowException
Description copied from class:SendMailFunction
Get the user logins.- Overrides:
_getUsers
in classSendMailFunction
- Parameters:
content
- the content.rights
- the set of rights to check.- Returns:
- the users.
- Throws:
com.opensymphony.workflow.WorkflowException
- If an error occurred
-
-