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.page.PageSubscribeAction
- All Implemented Interfaces:
Component,LogEnabled,Serviceable,ThreadSafe,Action
Action to subscribe to a page
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverThe ametys resolverprotected PageSubscriptionDAOThe subscription daoprotected static final PatternThe pattern to check emailsprotected static final PatternThe pattern to check text inputFields inherited from class org.ametys.core.observation.AbstractNotifierAction
_observationManagerFields inherited from class org.apache.cocoon.acting.ServiceableAction
managerFields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) voidservice(ServiceManager smanager) Methods inherited from class org.ametys.core.util.cocoon.AbstractCurrentUserProviderServiceableAction
_getCurrentUserMethods 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:
servicein interfaceServiceable- Overrides:
servicein classAbstractNotifierAction- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
Exception
-