Class SubscribeAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.plugins.newsletter.subscribe.AbstractSubscribeAction
org.ametys.plugins.newsletter.subscribe.SubscribeAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,ThreadSafe
,Action
This action subscribes an email address to a newsletter
-
Field Summary
Fields inherited from class org.ametys.plugins.newsletter.subscribe.AbstractSubscribeAction
_categoryProviderEP, _pageHelper, _resolver, _siteConfiguration, _subscribersDao
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
_validCategory
(String[] categories) Determines if the categories are validact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) Methods inherited from class org.ametys.plugins.newsletter.subscribe.AbstractSubscribeAction
_createSubscritpion, _getCategory, _validCaptcha, _validEmail, service
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
SubscribeAction
public SubscribeAction()
-
-
Method Details
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
Exception
-
_validCategory
Determines if the categories are valid- Parameters:
categories
- The categories id- Returns:
- true if the categories are valid
-