public class PageSubscriptionExplorerObserver extends AbstractPageSubscriptionObserver
| Modifier and Type | Field and Description |
|---|---|
private static int |
__MAX_RESOURCE_LINK |
_i18nUtils, _resolver, _siteConfigurationEP, _userManager, SUBSCRIBERS_PROPERTY_NAMEMAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
PageSubscriptionExplorerObserver() |
| Modifier and Type | Method and Description |
|---|---|
private String |
_getAbsoluteResourceUrl(Map<String,Resource> resources,
Page page) |
private String |
_getAbsoluteResourceUrl(Resource resource,
Page page) |
protected String |
_getMailBody(Event event,
Page page)
Create the mail body depend on the event
|
protected String |
_getMailSubject(Event event,
Page page)
Create the mail subject depend on the event
|
protected Collection<Page> |
_getPages(Event event)
Get the pages linked to the event
|
protected String |
getSiteParameterId()
Id of the site parameter to enable/disable the notification
|
boolean |
supports(Event event)
Checks if the event is supported.
|
_getAbsolutePageUrl, _getSubscribers, getPriority, isNotificationEnabled, observe, servicegetLogger, setLoggerprivate static final int __MAX_RESOURCE_LINK
public PageSubscriptionExplorerObserver()
public boolean supports(Event event)
Observerevent - the event.true for observing this event, false otherwise.protected String getSiteParameterId()
AbstractPageSubscriptionObservergetSiteParameterId in class AbstractPageSubscriptionObserverprivate String _getAbsoluteResourceUrl(Map<String,Resource> resources, Page page)
private String _getAbsoluteResourceUrl(Resource resource, Page page)
protected String _getMailSubject(Event event, Page page)
AbstractPageSubscriptionObserver_getMailSubject in class AbstractPageSubscriptionObserverevent - the eventpage - the pageprotected String _getMailBody(Event event, Page page)
AbstractPageSubscriptionObserver_getMailBody in class AbstractPageSubscriptionObserverevent - the eventpage - the pageprotected Collection<Page> _getPages(Event event)
AbstractPageSubscriptionObserver_getPages in class AbstractPageSubscriptionObserverevent - the event