Class SendMailFunction
java.lang.Object
org.ametys.plugins.workflow.AbstractWorkflowComponent
org.ametys.cms.workflow.AbstractContentWorkflowComponent
org.ametys.cms.workflow.SendMailFunction
org.ametys.web.workflow.SendMailFunction
org.ametys.plugins.odfweb.workflow.SendMailFunction
- All Implemented Interfaces:
com.opensymphony.workflow.FunctionProvider,EnhancedFunction,PluginAware,Initializable,Contextualizable,LogEnabled,Serviceable
- Direct Known Subclasses:
SendMailToUserFunction
OS workflow function to send mail after an action is triggered on ODF contents
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
AbstractWorkflowComponent.ConditionFailureNested classes/interfaces inherited from interface org.ametys.plugins.workflow.EnhancedFunction
EnhancedFunction.FunctionType -
Field Summary
Fields inherited from class org.ametys.cms.workflow.SendMailFunction
_context, _i18nUtils, _pluginName, _rightManager, _rightsExtensionPoint, _sourceResolver, _userLanguagesManager, _userManager, _workflowProvider, BODY_KEY, RIGHTS_KEY, SEND_MAIL, SUBJECT_KEYFields inherited from class org.ametys.cms.workflow.AbstractContentWorkflowComponent
_contentHelper, CONTENT_KEY, HAS_CHANGED_KEYFields inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_VALIDATION_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Page_getPage(WorkflowAwareContent content, Site site) Get the page referenced by this contentprotected Site_getSite(WorkflowAwareContent content) Get the site namegetLabel()Get the label for this functionvoidservice(ServiceManager manager) Methods inherited from class org.ametys.web.workflow.SendMailFunction
_getContentUri, _getRequestUri, getBodyI18nParams, getMailBody, getSubjectI18nParamsMethods inherited from class org.ametys.cms.workflow.SendMailFunction
_getContentUri, _getRequest, _getUsers, _sendMails, contextualize, execute, getArguments, getCaller, getFullLabel, getFunctionExecType, getMailSubject, getRecipientsByLanguage, getSender, initialize, setPluginInfoMethods inherited from class org.ametys.cms.workflow.AbstractContentWorkflowComponent
getContentMethods inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUserMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.plugins.workflow.EnhancedFunction
getVisibilities
-
Constructor Details
-
SendMailFunction
public SendMailFunction()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classSendMailFunction- Throws:
ServiceException
-
_getSite
Description copied from class:SendMailFunctionGet the site name- Overrides:
_getSitein classSendMailFunction- Parameters:
content- The content- Returns:
- the site name
-
_getPage
Description copied from class:SendMailFunctionGet the page referenced by this content- Overrides:
_getPagein classSendMailFunction- Parameters:
content- The contentsite- the site- Returns:
- the page or null.
-
getLabel
Description copied from interface:EnhancedFunctionGet the label for this function- Specified by:
getLabelin interfaceEnhancedFunction- Overrides:
getLabelin classSendMailFunction- Returns:
- the label
-