Class AbstractMailInformationHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.forms.workflow.AbstractMailInformationHelper
- All Implemented Interfaces:
 LogEnabled,Component,Serviceable
- Direct Known Subclasses:
 MailInformationHelper
public abstract class AbstractMailInformationHelper
extends AbstractLogEnabled
implements Component, Serviceable
Helper component allowing to retrieve information in order to send emails
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass representing mail info - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CurrentUserProviderThe current user providerprotected UserManagerThe user manager - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected abstract List<AbstractMailInformationHelper.MailInfo>_getMailInfos(String formId, Object entryId) Get mail infosgetMailInfo(String formId, Object entryId) Get information on the given entry of the given formvoidservice(ServiceManager serviceManager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger 
- 
Field Details
- 
_currentUserProvider
The current user provider - 
_userManager
The user manager 
 - 
 - 
Constructor Details
- 
AbstractMailInformationHelper
public AbstractMailInformationHelper() 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Throws:
 ServiceException
 - 
getMailInfo
Get information on the given entry of the given form- Parameters:
 formId- the id of the formentryId- the id of the entry- Returns:
 - a map of information on the current user and on the email fields filled in the entry
 
 - 
_getMailInfos
protected abstract List<AbstractMailInformationHelper.MailInfo> _getMailInfos(String formId, Object entryId) Get mail infos- Parameters:
 formId- the form identryId- the entry id- Returns:
 - the list of mail info
 
 
 -