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
Modifier and TypeClassDescriptionstatic class
Class representing mail info -
Field Summary
Modifier and TypeFieldDescriptionprotected CurrentUserProvider
The current user providerprotected UserManager
The user manager -
Constructor Summary
-
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 formvoid
service
(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:
service
in 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
-