com.atlassian.jira.event.listeners.mail
Class DebugMailListener
java.lang.Object
com.atlassian.jira.event.issue.AbstractIssueEventListener
com.atlassian.jira.event.listeners.mail.MailListener
com.atlassian.jira.event.listeners.mail.DebugMailListener
- All Implemented Interfaces:
- IssueEventListener, JiraListener, UserEventListener, EventListener
public class DebugMailListener
- extends MailListener
This listener is used to debug the MailListener.
Basically instead of actually sending an email, it will print the method call
- See Also:
MailListener
Method Summary |
boolean |
isInternal()
Indicates whether this listener is internal, meaning it cannot be
removed by an administrator. |
protected void |
sendNotification(IssueEvent event)
Retrieve the associated notification scheme and create the mail items for notification of the specified event. |
protected void |
sendUserMail(UserEvent event,
String subject,
String template)
|
Methods inherited from class com.atlassian.jira.event.listeners.mail.MailListener |
addMailItems, customEvent, getAcceptedParams, getDescription, init, issueAssigned, issueClosed, issueCommentDeleted, issueCommented, issueCommentEdited, issueCreated, issueDeleted, issueGenericEvent, issueMoved, issueReopened, issueResolved, issueStarted, issueStopped, issueUpdated, issueWorklogDeleted, issueWorkLogged, issueWorklogUpdated, isUnique, sendUserMail, userCannotChangePassword, userCreated, userForgotPassword, userForgotUsername, userSignup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DebugMailListener
public DebugMailListener(NotificationSchemeManager notificationSchemeManager,
IssueMailQueueItemFactory issueMailQueueItemFactory,
UserManager userManager,
NotificationFilterManager notificationFilterManager)
sendNotification
protected void sendNotification(IssueEvent event)
- Description copied from class:
MailListener
- Retrieve the associated notification scheme and create the mail items for notification of the specified event.
- Overrides:
sendNotification
in class MailListener
- Parameters:
event
- the IssueEvent triggering the notification
sendUserMail
protected void sendUserMail(UserEvent event,
String subject,
String template)
isInternal
public boolean isInternal()
- Description copied from interface:
JiraListener
- Indicates whether this listener is internal, meaning it cannot be
removed by an administrator.
- Specified by:
isInternal
in interface JiraListener
- Overrides:
isInternal
in class MailListener
- Returns:
true
if this is an Atlassian listener, otherwise false
Copyright © 2002-2014 Atlassian. All Rights Reserved.