Class PageSubscriptionExplorerObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.pagesubscription.observer.AbstractPageSubscriptionObserver
org.ametys.plugins.pagesubscription.observer.PageSubscriptionExplorerObserver
- All Implemented Interfaces:
Observer,LogEnabled,Serviceable
Listen attachment page and send mail
-
Field Summary
Fields inherited from class org.ametys.plugins.pagesubscription.observer.AbstractPageSubscriptionObserver
_i18nUtils, _resolver, _subscriptionDAO, _userManagerFields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
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 StringId of the site parameter to enable/disable the notificationbooleanChecks if the event is supported.Methods inherited from class org.ametys.plugins.pagesubscription.observer.AbstractPageSubscriptionObserver
_getAbsolutePageUrl, getPriority, isNotificationEnabled, observe, serviceMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
PageSubscriptionExplorerObserver
public PageSubscriptionExplorerObserver()
-
-
Method Details
-
supports
Description copied from interface:ObserverChecks if the event is supported. If true, the observe(Event) method will be called.- Parameters:
event- the event.- Returns:
truefor observing this event,falseotherwise.
-
getSiteParameterId
Description copied from class:AbstractPageSubscriptionObserverId of the site parameter to enable/disable the notification- Specified by:
getSiteParameterIdin classAbstractPageSubscriptionObserver- Returns:
- The id of site
-
_getMailSubject
Description copied from class:AbstractPageSubscriptionObserverCreate the mail subject depend on the event- Specified by:
_getMailSubjectin classAbstractPageSubscriptionObserver- Parameters:
event- the eventpage- the page- Returns:
- the mail subject
-
_getMailBody
Description copied from class:AbstractPageSubscriptionObserverCreate the mail body depend on the event- Specified by:
_getMailBodyin classAbstractPageSubscriptionObserver- Parameters:
event- the eventpage- the page- Returns:
- the mail body
-
_getPages
Description copied from class:AbstractPageSubscriptionObserverGet the pages linked to the event- Specified by:
_getPagesin classAbstractPageSubscriptionObserver- Parameters:
event- the event- Returns:
- the pages linked to the event
-