Class PageSubscribeAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.core.util.cocoon.AbstractCurrentUserProviderServiceableAction
-
- org.ametys.core.observation.AbstractNotifierAction
-
- org.ametys.plugins.pagesubscription.PageSubscribeAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,ThreadSafe
,Action
public class PageSubscribeAction extends AbstractNotifierAction
Action to subscribe to a page
-
-
Field Summary
Fields Modifier and Type Field Description protected AmetysObjectResolver
_resolver
The ametys resolverprotected PageSubscriptionDAO
_subscriptionDAO
The subscription daoprotected static Pattern
EMAIL_VALIDATOR
The pattern to check emailsprotected static Pattern
TEXT_VALIDATOR
The pattern to check text input-
Fields inherited from class org.ametys.core.observation.AbstractNotifierAction
_observationManager
-
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 PageSubscribeAction()
-
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
service(ServiceManager smanager)
-
Methods inherited from class org.ametys.core.util.cocoon.AbstractCurrentUserProviderServiceableAction
_getCurrentUser
-
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
-
TEXT_VALIDATOR
protected static final Pattern TEXT_VALIDATOR
The pattern to check text input
-
_resolver
protected AmetysObjectResolver _resolver
The ametys resolver
-
_subscriptionDAO
protected PageSubscriptionDAO _subscriptionDAO
The subscription dao
-
-
Constructor Detail
-
PageSubscribeAction
public PageSubscribeAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractNotifierAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
-