public class

DebugMailListener

extends MailListener
java.lang.Object
   ↳ com.atlassian.jira.event.issue.AbstractIssueEventListener
     ↳ com.atlassian.jira.event.listeners.mail.MailListener
       ↳ com.atlassian.jira.event.listeners.mail.DebugMailListener

Class Overview

This listener is used to debug the MailListener.

Basically instead of actually sending an email, it will print the method call

See Also

Summary

Public Constructors
DebugMailListener(NotificationSchemeManager notificationSchemeManager, IssueMailQueueItemFactory issueMailQueueItemFactory, UserManager userManager, NotificationFilterManager notificationFilterManager)
Public Methods
boolean isInternal()
Indicates whether this listener is internal, meaning it cannot be removed by an administrator.
Protected Methods
void sendNotification(IssueEvent event)
Retrieve the associated notification scheme and create the mail items for notification of the specified event.
void sendUserMail(UserEvent event, String subject, String template)
[Expand]
Inherited Methods
From class com.atlassian.jira.event.listeners.mail.MailListener
From class com.atlassian.jira.event.issue.AbstractIssueEventListener
From class java.lang.Object
From interface com.atlassian.jira.event.JiraListener
From interface com.atlassian.jira.event.issue.IssueEventListener
From interface com.atlassian.jira.event.user.UserEventListener

Public Constructors

public DebugMailListener (NotificationSchemeManager notificationSchemeManager, IssueMailQueueItemFactory issueMailQueueItemFactory, UserManager userManager, NotificationFilterManager notificationFilterManager)

Public Methods

public boolean isInternal ()

Indicates whether this listener is internal, meaning it cannot be removed by an administrator.

Returns
  • true if this is an Atlassian listener, otherwise false

Protected Methods

protected void sendNotification (IssueEvent event)

Retrieve the associated notification scheme and create the mail items for notification of the specified event.

Parameters
event the IssueEvent triggering the notification

protected void sendUserMail (UserEvent event, String subject, String template)