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
FieldsModifier and TypeFieldDescriptionprotected FormDAOThe form DAOprotected AmetysObjectResolverAmetys object resolver.static final StringPattern for admin mailsstatic final StringAvalon ROLE. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]getAdminEmails(String formId) Get the entries admin emailsvoidservice(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:
servicein 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
-