public class ThreadsMailNotifierObserver extends AbstractSendNotificationObserver
_context, _i18nUtils, _moduleManagerEP, _pluginName, _projectManager, _renderingContextHandler, _resolver, _rightManager, _userManager
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
ThreadsMailNotifierObserver() |
Modifier and Type | Method and Description |
---|---|
protected String |
getRightIdForNotify()
Get the right to check allowed users to notify by mail
|
protected String |
getUrl(Project project,
String objectId)
Get the URL of project to insert in email body
|
protected void |
notifyEvent(Project project,
String eventId,
Map<String,Object> eventParams,
User issuer)
Notify email by mail
|
boolean |
supports(Event event)
Checks if the event is supported.
|
_getPath, contextualize, getDefaultLanguage, getMailCommonParams, getModulePage, getModuleUrl, getPriority, getProject, getProjectUrl, getUsersToNotify, observe, sendMail, service, setPluginInfo
getLogger, setLogger
public ThreadsMailNotifierObserver()
public boolean supports(Event event)
Observer
event
- the event.true
for observing this event, false
otherwise.protected String getUrl(Project project, String objectId)
AbstractSendNotificationObserver
getUrl
in class AbstractSendNotificationObserver
project
- The projectobjectId
- The id of concerned objectprotected String getRightIdForNotify()
AbstractSendNotificationObserver
getRightIdForNotify
in class AbstractSendNotificationObserver
protected void notifyEvent(Project project, String eventId, Map<String,Object> eventParams, User issuer)
AbstractSendNotificationObserver
notifyEvent
in class AbstractSendNotificationObserver
project
- The projecteventId
- The id of eventeventParams
- The event's argumentsissuer
- The issuer