Class PageSubscriptionValidateContentObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.pagesubscription.observer.AbstractPageSubscriptionObserver
org.ametys.plugins.pagesubscription.observer.PageSubscriptionValidateContentObserver
- All Implemented Interfaces:
Observer
,LogEnabled
,Serviceable
Listen content page and send mail
-
Field Summary
Fields inherited from class org.ametys.plugins.pagesubscription.observer.AbstractPageSubscriptionObserver
_i18nUtils, _resolver, _subscriptionDAO, _userManager
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
_getMailBody
(Event event, Page page) Create the mail body depend on the eventprotected String
_getMailSubject
(Event event, Page page) Create the mail subject depend on the eventprotected Collection<Page>
Get the pages linked to the eventprotected String
Id of the site parameter to enable/disable the notificationboolean
Checks if the event is supported.Methods inherited from class org.ametys.plugins.pagesubscription.observer.AbstractPageSubscriptionObserver
_getAbsolutePageUrl, getPriority, isNotificationEnabled, observe, service
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
PageSubscriptionValidateContentObserver
-
-
Method Details
-
supports
Description copied from interface:Observer
Checks if the event is supported. If true, the observe(Event) method will be called.- Parameters:
event
- the event.- Returns:
true
for observing this event,false
otherwise.
-
getSiteParameterId
Description copied from class:AbstractPageSubscriptionObserver
Id of the site parameter to enable/disable the notification- Specified by:
getSiteParameterId
in classAbstractPageSubscriptionObserver
- Returns:
- The id of site
-
_getMailSubject
Description copied from class:AbstractPageSubscriptionObserver
Create the mail subject depend on the event- Specified by:
_getMailSubject
in classAbstractPageSubscriptionObserver
- Parameters:
event
- the eventpage
- the page- Returns:
- the mail subject
-
_getMailBody
Description copied from class:AbstractPageSubscriptionObserver
Create the mail body depend on the event- Specified by:
_getMailBody
in classAbstractPageSubscriptionObserver
- Parameters:
event
- the eventpage
- the page- Returns:
- the mail body
-
_getPages
Description copied from class:AbstractPageSubscriptionObserver
Get the pages linked to the event- Specified by:
_getPages
in classAbstractPageSubscriptionObserver
- Parameters:
event
- the event- Returns:
- the pages linked to the event
-