com.atlassian.jira.event.listeners.mail
Class DebugMailListener

java.lang.Object
  extended by com.atlassian.jira.event.issue.AbstractIssueEventListener
      extended by com.atlassian.jira.event.listeners.mail.MailListener
          extended by 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

Constructor Summary
DebugMailListener(NotificationSchemeManager notificationSchemeManager, IssueMailQueueItemFactory issueMailQueueItemFactory)
           
 
Method Summary
 boolean isInternal()
          Indicates whether administrators can delete this listener from within the web interface.
protected  void sendNotification(IssueEvent event)
          Retrieve the assocaited 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
createMailItems, customEvent, getAcceptedParams, getDescription, init, issueAssigned, issueClosed, issueCommented, issueCommentEdited, issueCreated, issueDeleted, issueGenericEvent, issueMoved, issueReopened, issueResolved, issueStarted, issueStopped, issueUpdated, issueWorklogDeleted, issueWorkLogged, issueWorklogUpdated, isUnique, sendUserMail, userCreated, userForgotPassword, userForgotUsername, userSignup
 
Methods inherited from class com.atlassian.jira.event.issue.AbstractIssueEventListener
getI18NBean, workflowEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.event.issue.IssueEventListener
workflowEvent
 

Constructor Detail

DebugMailListener

public DebugMailListener(NotificationSchemeManager notificationSchemeManager,
                         IssueMailQueueItemFactory issueMailQueueItemFactory)
Method Detail

sendNotification

protected void sendNotification(IssueEvent event)
Description copied from class: MailListener
Retrieve the assocaited notification scheme and create the mail items for notification of the specified event.

Overrides:
sendNotification in class MailListener

sendUserMail

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

isInternal

public boolean isInternal()
Description copied from interface: JiraListener
Indicates whether administrators can delete this listener from within the web interface.

Basically only Atlassian listeners should return true from this.

Specified by:
isInternal in interface JiraListener
Overrides:
isInternal in class MailListener


Copyright © 2002-2008 Atlassian. All Rights Reserved.