public class ThreadsMailNotifierObserver extends AbstractSendNotificationObserver
_context, _i18nUtils, _moduleManagerEP, _pluginName, _projectManager, _renderingContextHandler, _resolver, _rightManager, _userManagerMAX_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, setPluginInfogetLogger, setLoggerpublic ThreadsMailNotifierObserver()
public boolean supports(Event event)
Observerevent - the event.true for observing this event, false otherwise.protected String getUrl(Project project, String objectId)
AbstractSendNotificationObservergetUrl in class AbstractSendNotificationObserverproject - The projectobjectId - The id of concerned objectprotected String getRightIdForNotify()
AbstractSendNotificationObservergetRightIdForNotify in class AbstractSendNotificationObserverprotected void notifyEvent(Project project, String eventId, Map<String,Object> eventParams, User issuer)
AbstractSendNotificationObservernotifyEvent in class AbstractSendNotificationObserverproject - The projecteventId - The id of eventeventParams - The event's argumentsissuer - The issuer