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
Action to subscribe to a page
-
Field Summary
Modifier and TypeFieldDescriptionprotected AmetysObjectResolver
The ametys resolverprotected PageSubscriptionDAO
The subscription daoprotected static final Pattern
The pattern to check emailsprotected static final Pattern
The pattern to check text inputFields 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
-
Method Summary
Modifier and TypeMethodDescriptionact
(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 Details
-
EMAIL_VALIDATOR
The pattern to check emails -
TEXT_VALIDATOR
The pattern to check text input -
_resolver
The ametys resolver -
_subscriptionDAO
The subscription dao
-
-
Constructor Details
-
PageSubscribeAction
public PageSubscribeAction()
-
-
Method Details
-
service
- 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
-