Package org.ametys.plugins.forms.helper
Class FormAdminMailsHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.forms.helper.FormAdminMailsHelper
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
The helper to handle admin emails
-
Field Summary
Modifier and TypeFieldDescriptionprotected FormDAO
The form DAOprotected AmetysObjectResolver
Ametys object resolver.static final String
Pattern for admin mailsstatic final String
Avalon ROLE. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
getAdminEmails
(String formId) Get the entries admin emailsvoid
service
(ServiceManager manager) setAdminEmails
(String formId, String emails) Get the entries admin emailsMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon ROLE. -
REGEX_MAIL
Pattern for admin mails- See Also:
-
_resolver
Ametys object resolver. -
_formDAO
The form DAO
-
-
Constructor Details
-
FormAdminMailsHelper
public FormAdminMailsHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getAdminEmails
Get the entries admin emails- Parameters:
formId
- Id of the form- Returns:
- the array of admin emails
-
setAdminEmails
Get the entries admin emails- Parameters:
formId
- Id of the formemails
- mails of the admin- Returns:
- the map of results
-