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(UserManager userManager, IssueEventBundleMailHandler issueEventBundleMailHandler, MailQueue mailQueueUserManager, IssueEventBundleFactory issueEventBundleFactory)
Public Methods
@EventListener void handleIssueEventBundle(IssueEventBundle bundle)
boolean isInternal()
Indicates whether this listener is internal, meaning it cannot be removed by an administrator.
Protected Methods
void handleDefaultIssueEvent(IssueEvent event)
If you need to treat all the issue events equally, override this method and add logic to handle events.
void sendUserMail(UserEvent event, String subject, String subjectKey, 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 (UserManager userManager, IssueEventBundleMailHandler issueEventBundleMailHandler, MailQueue mailQueueUserManager, IssueEventBundleFactory issueEventBundleFactory)

Public Methods

@EventListener public void handleIssueEventBundle (IssueEventBundle bundle)

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 handleDefaultIssueEvent (IssueEvent event)

If you need to treat all the issue events equally, override this method and add logic to handle events. All legacy event handler methods (unless overridden) in this class call this method.

Parameters
event The received event

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