@PublicApi
public interface MessageHandlerContext
Modifier and Type | Method and Description |
---|---|
ChangeItemBean |
createAttachment(File file,
String filename,
String contentType,
ApplicationUser author,
Issue issue)
Creates attachment (when run in real mode) or does nothing if run in dry run mode.
|
Comment |
createComment(Issue issue,
ApplicationUser author,
String body,
boolean dispatchEvent)
Creates a new issue comment in JIRA or a dummy comment in dry run mode
|
Issue |
createIssue(ApplicationUser reporter,
Issue issue)
Creates a new issue in JIRA or a dummy issue in dry run mode
|
ApplicationUser |
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() |
ApplicationUser createUser(String username, String password, String email, String fullname, Integer userEventType) throws PermissionException, CreateException
username
- password
- email
- fullname
- userEventType
- PermissionException
CreateException
Comment createComment(Issue issue, ApplicationUser author, String body, boolean dispatchEvent)
issue
- author
- body
- dispatchEvent
- Issue createIssue(@Nullable ApplicationUser reporter, Issue issue) throws CreateException
reporter
- issue
- CreateException
ChangeItemBean createAttachment(File file, String filename, String contentType, ApplicationUser author, Issue issue) throws AttachmentException
file
- filename
- contentType
- author
- issue
- IssueUpdater.doUpdate(com.atlassian.jira.issue.util.IssueUpdateBean, boolean)
AttachmentException
boolean isRealRun()
true
if the context works in production mode (when handlers are run from the service)
or false
if runsMessageHandlerExecutionMonitor getMonitor()
Copyright © 2002-2019 Atlassian. All Rights Reserved.