public class PageSubscriptionExplorerObserver extends AbstractPageSubscriptionObserver
Modifier and Type | Field and Description |
---|---|
private static int |
__MAX_RESOURCE_LINK |
_i18nUtils, _resolver, _siteConfigurationEP, _userManager, SUBSCRIBERS_PROPERTY_NAME
MAX_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, service
getLogger, setLogger
private static final int __MAX_RESOURCE_LINK
public PageSubscriptionExplorerObserver()
public boolean supports(Event event)
Observer
event
- the event.true
for observing this event, false
otherwise.protected String getSiteParameterId()
AbstractPageSubscriptionObserver
getSiteParameterId
in class AbstractPageSubscriptionObserver
private 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 AbstractPageSubscriptionObserver
event
- the eventpage
- the pageprotected String _getMailBody(Event event, Page page)
AbstractPageSubscriptionObserver
_getMailBody
in class AbstractPageSubscriptionObserver
event
- the eventpage
- the pageprotected Collection<Page> _getPages(Event event)
AbstractPageSubscriptionObserver
_getPages
in class AbstractPageSubscriptionObserver
event
- the event