public class DebugMailListener extends MailListener
Basically instead of actually sending an email, it will print the method call
MailListener
Constructor and Description |
---|
DebugMailListener(UserManager userManager,
IssueEventBundleMailHandler issueEventBundleMailHandler,
com.atlassian.mail.queue.MailQueue mailQueueUserManager,
IssueEventBundleFactory issueEventBundleFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleDefaultIssueEvent(IssueEvent event)
If you need to treat all the issue events equally, override this method and add logic to handle events.
|
void |
handleIssueEventBundle(IssueEventBundle bundle) |
boolean |
isInternal()
Indicates whether this listener is internal, meaning it cannot be
removed by an administrator.
|
protected void |
sendUserMail(UserEvent event,
String subject,
String subjectKey,
String template) |
getAcceptedParams, getDescription, init, isUnique, userCannotChangePassword, userCreated, userForgotPassword, userForgotUsername, userSignup
customEvent, getI18NBean, issueAssigned, issueClosed, issueCommentDeleted, issueCommented, issueCommentEdited, issueCreated, issueDeleted, issueGenericEvent, issueMoved, issueReopened, issueResolved, issueStarted, issueStopped, issueUpdated, issueWorklogDeleted, issueWorkLogged, issueWorklogUpdated, workflowEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
customEvent, issueAssigned, issueClosed, issueCommented, issueCreated, issueDeleted, issueGenericEvent, issueMoved, issueReopened, issueResolved, issueStarted, issueStopped, issueUpdated, issueWorkLogged, workflowEvent
public DebugMailListener(UserManager userManager, IssueEventBundleMailHandler issueEventBundleMailHandler, com.atlassian.mail.queue.MailQueue mailQueueUserManager, IssueEventBundleFactory issueEventBundleFactory)
public boolean isInternal()
JiraListener
isInternal
in interface JiraListener
isInternal
in class MailListener
true
if this is an Atlassian listener, otherwise protected void sendUserMail(UserEvent event, String subject, String subjectKey, String template)
sendUserMail
in class MailListener
@EventListener public void handleIssueEventBundle(IssueEventBundle bundle)
handleIssueEventBundle
in class MailListener
protected void handleDefaultIssueEvent(IssueEvent event)
AbstractIssueEventListener
handleDefaultIssueEvent
in class MailListener
event
- The received eventCopyright © 2002-2017 Atlassian. All Rights Reserved.