|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.service.util.handler.DefaultMessageHandlerContext
@Internal public class DefaultMessageHandlerContext
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.
| Constructor Summary | |
|---|---|
DefaultMessageHandlerContext(CommentManager commentManager,
MessageHandlerExecutionMonitor monitor,
IssueManager issueManager,
AttachmentManager attachmentManager)
|
|
| Method Summary | |
|---|---|
ChangeItemBean |
createAttachment(File file,
String filename,
String contentType,
com.atlassian.crowd.embedded.api.User author,
Issue issue)
Creates attachment (when run in real mode) or does nothing if run in dry run mode. |
Comment |
createComment(Issue issue,
com.atlassian.crowd.embedded.api.User author,
String body,
boolean dispatchEvent)
Creates a new issue comment in JIRA or a dummy comment in dry run mode |
Issue |
createIssue(com.atlassian.crowd.embedded.api.User reporter,
Issue issue)
Creates a new issue in JIRA or a dummy issue in dry run mode |
com.atlassian.crowd.embedded.api.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 |
MessageHandlerExecutionMonitor |
getMonitor()
|
boolean |
isRealRun()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMessageHandlerContext(CommentManager commentManager,
MessageHandlerExecutionMonitor monitor,
IssueManager issueManager,
AttachmentManager attachmentManager)
| Method Detail |
|---|
public com.atlassian.crowd.embedded.api.User createUser(String username,
String password,
String email,
String fullname,
Integer userEventType)
throws PermissionException,
CreateException
MessageHandlerContext
createUser in interface MessageHandlerContextPermissionException
CreateException
public Comment createComment(Issue issue,
com.atlassian.crowd.embedded.api.User author,
String body,
boolean dispatchEvent)
MessageHandlerContext
createComment in interface MessageHandlerContext
public Issue createIssue(@Nullable
com.atlassian.crowd.embedded.api.User reporter,
Issue issue)
throws CreateException
MessageHandlerContext
createIssue in interface MessageHandlerContextCreateException
public ChangeItemBean createAttachment(File file,
String filename,
String contentType,
com.atlassian.crowd.embedded.api.User author,
Issue issue)
throws AttachmentException
MessageHandlerContext
createAttachment in interface MessageHandlerContextIssueUpdater.doUpdate(com.atlassian.jira.issue.util.IssueUpdateBean, boolean)
AttachmentExceptionpublic boolean isRealRun()
isRealRun in interface MessageHandlerContexttrue if the context works in production mode (when handlers are run from the service)
or false if runspublic MessageHandlerExecutionMonitor getMonitor()
getMonitor in interface MessageHandlerContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||