@Internal public class

DefaultMessageHandlerContext

extends Object
implements MessageHandlerContext
java.lang.Object
   ↳ com.atlassian.jira.service.util.handler.DefaultMessageHandlerContext

@Internal

This class is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

Class Overview

This class has been made public only to allow easy unit testing by tests from other packages. This is the standard implementation which dispatches calls to appropriate JIRA managers.

Summary

Public Constructors
DefaultMessageHandlerContext(CommentManager commentManager, MessageHandlerExecutionMonitor monitor, IssueManager issueManager, AttachmentManager attachmentManager)
Public Methods
ChangeItemBean createAttachment(File file, String filename, String contentType, User author, Issue issue)
Creates attachment (when run in real mode) or does nothing if run in dry run mode.
Comment createComment(Issue issue, User author, String body, boolean dispatchEvent)
Creates a new issue comment in JIRA or a dummy comment in dry run mode
Issue createIssue(User reporter, Issue issue)
Creates a new issue in JIRA or a dummy issue in dry run mode@return
User createUser(String username, String password, String email, String fullname, Integer userEventType)
Creates user in JIRA or just dummy user if run in dry run mode@return
MessageHandlerExecutionMonitor getMonitor()
boolean isRealRun()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.service.util.handler.MessageHandlerContext

Public Constructors

public DefaultMessageHandlerContext (CommentManager commentManager, MessageHandlerExecutionMonitor monitor, IssueManager issueManager, AttachmentManager attachmentManager)

Public Methods

public ChangeItemBean createAttachment (File file, String filename, String contentType, User author, Issue issue)

Creates attachment (when run in real mode) or does nothing if run in dry run mode.

Returns

public Comment createComment (Issue issue, User author, String body, boolean dispatchEvent)

Creates a new issue comment in JIRA or a dummy comment in dry run mode

public Issue createIssue (User reporter, Issue issue)

Creates a new issue in JIRA or a dummy issue in dry run mode@return

public User createUser (String username, String password, String email, String fullname, Integer userEventType)

Creates user in JIRA or just dummy user if run in dry run mode@return

public MessageHandlerExecutionMonitor getMonitor ()

public boolean isRealRun ()