Class SendMailAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.plugins.socialnetworking.SendMailAction
-
- All Implemented Interfaces:
Component,LogEnabled,Serviceable,Action
public class SendMailAction extends ServiceableAction
Check if the form is well formed Send the mail to all the receiver
-
-
Field Summary
Fields Modifier and Type Field Description protected I18nUtils_i18nUtilsThe i18n utils of runtimeprotected AmetysObjectResolver_resolverRepository contentprotected static PatternEMAIL_LIST_VALIDATORThe pattern to check a list of emailsprotected static PatternEMAIL_VALIDATORThe pattern to check emailsprotected static PatternTEXT_VALIDATORThe pattern to check text input-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description SendMailAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mapact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)voidservice(ServiceManager smanager)-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
EMAIL_VALIDATOR
protected static final Pattern EMAIL_VALIDATOR
The pattern to check emails
-
EMAIL_LIST_VALIDATOR
protected static final Pattern EMAIL_LIST_VALIDATOR
The pattern to check a list of emails
-
TEXT_VALIDATOR
protected static final Pattern TEXT_VALIDATOR
The pattern to check text input
-
_resolver
protected AmetysObjectResolver _resolver
Repository content
-
_i18nUtils
protected I18nUtils _i18nUtils
The i18n utils of runtime
-
-
Constructor Detail
-
SendMailAction
public SendMailAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classServiceableAction- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
-