com.atlassian.jira.mock.event
Class MockMailListener

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.mock.event.MockMailListener
All Implemented Interfaces:
IssueEventListener, JiraListener, UserEventListener, EventListener

public class MockMailListener
extends MailListener


Constructor Summary
MockMailListener(NotificationSchemeManager notificationSchemeManager, IssueMailQueueItemFactory issueMailQueueItemFactory, UserManager userManager, NotificationFilterManager notificationFilterManager)
           
 
Method Summary
 Long getEventTypeIDCalled()
           
 String getUserMailCalled()
           
 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 subjectKey, String template)
           
 void setSendMessage(boolean sendMessage)
           
 
Methods inherited from class com.atlassian.jira.event.listeners.mail.MailListener
addMailItems, customEvent, getAcceptedParams, getDescription, init, isInternal, issueAssigned, issueClosed, issueCommentDeleted, issueCommented, issueCommentEdited, issueCreated, issueDeleted, issueGenericEvent, issueMoved, issueReopened, issueResolved, issueStarted, issueStopped, issueUpdated, issueWorklogDeleted, issueWorkLogged, issueWorklogUpdated, isUnique, userCannotChangePassword, 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

MockMailListener

public MockMailListener(NotificationSchemeManager notificationSchemeManager,
                        IssueMailQueueItemFactory issueMailQueueItemFactory,
                        UserManager userManager,
                        NotificationFilterManager notificationFilterManager)
Method Detail

sendNotification

public 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

getEventTypeIDCalled

public Long getEventTypeIDCalled()

setSendMessage

public void setSendMessage(boolean sendMessage)

sendUserMail

public void sendUserMail(UserEvent event,
                         String subject,
                         String subjectKey,
                         String template)
Overrides:
sendUserMail in class MailListener

getUserMailCalled

public String getUserMailCalled()


Copyright © 2002-2014 Atlassian. All Rights Reserved.