Class SubscribeAndManageAction
- 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.SubscribeAndManageAction
-
- All Implemented Interfaces:
Initializable
,Component
,LogEnabled
,Serviceable
,ThreadSafe
,Action
public class SubscribeAndManageAction extends AbstractSubscribeAction implements Initializable
This action subscribes an email address to a newsletter
-
-
Field Summary
Fields Modifier and Type Field Description protected CurrentUserProvider
_currentUserProvider
The current user providerprotected UserManager
_userManager
The user manager-
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
Constructors Constructor Description SubscribeAndManageAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
void
initialize()
void
service(ServiceManager smanager)
-
Methods inherited from class org.ametys.plugins.newsletter.subscribe.AbstractSubscribeAction
_createSubscritpion, _getCategory, _validCaptcha, _validEmail
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_userManager
protected UserManager _userManager
The user manager
-
_currentUserProvider
protected CurrentUserProvider _currentUserProvider
The current user provider
-
-
Constructor Detail
-
SubscribeAndManageAction
public SubscribeAndManageAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractSubscribeAction
- Throws:
ServiceException
-
initialize
public void initialize() throws Exception
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
-
-