|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IssueRestClient
The client handling issue resources.
Method Summary | |
---|---|
void |
addAttachment(ProgressMonitor progressMonitor,
URI attachmentsUri,
InputStream in,
String filename)
Uploads attachments to JIRA (adding it to selected issue) |
void |
addAttachments(ProgressMonitor progressMonitor,
URI attachmentsUri,
AttachmentInput... attachments)
Uploads attachments to JIRA (adding it to selected issue) |
void |
addAttachments(ProgressMonitor progressMonitor,
URI attachmentsUri,
File... files)
Uploads attachments to JIRA (adding it to selected issue) |
void |
addWatcher(URI watchersUri,
String username,
ProgressMonitor progressMonitor)
Adds selected person as a watcher for selected issue. |
InputStream |
getAttachment(ProgressMonitor pm,
URI attachmentUri)
Retrieves the content of given attachment. |
Issue |
getIssue(String issueKey,
ProgressMonitor progressMonitor)
Retrieves issue with selected issue key. |
Iterable<Transition> |
getTransitions(URI transitionsUri,
ProgressMonitor progressMonitor)
Retrieves complete information (if the caller has permission) about transitions available for the selected issue in its current state. |
Votes |
getVotes(URI votesUri,
ProgressMonitor progressMonitor)
Retrieves complete information (if the caller has permission) about voters for selected issue. |
Watchers |
getWatchers(URI watchersUri,
ProgressMonitor progressMonitor)
Retrieves complete information (if the caller has permission) about watchers for selected issue. |
void |
linkIssue(LinkIssuesInput linkIssuesInput,
ProgressMonitor progressMonitor)
Creates link between two issues and adds a comment (optional) to the source issues. |
void |
removeWatcher(URI watchersUri,
String username,
ProgressMonitor progressMonitor)
Removes selected person from the watchers list for selected issue. |
void |
transition(URI transitionsUri,
TransitionInput transitionInput,
ProgressMonitor progressMonitor)
Performs selected transition on selected issue. |
void |
unvote(URI votesUri,
ProgressMonitor progressMonitor)
Removes your vote from the selected issue. |
void |
unwatch(URI watchersUri,
ProgressMonitor progressMonitor)
Stops watching selected issue |
void |
vote(URI votesUri,
ProgressMonitor progressMonitor)
Casts your vote on the selected issue. |
void |
watch(URI watchersUri,
ProgressMonitor progressMonitor)
Starts watching selected issue |
Method Detail |
---|
Issue getIssue(String issueKey, ProgressMonitor progressMonitor)
issueKey
- issue key (like TST-1, or JRA-9)progressMonitor
- progress monitor
issueKey
RestClientException
- in case of problems (connectivity, malformed messages, invalid argument, etc.)Watchers getWatchers(URI watchersUri, ProgressMonitor progressMonitor)
watchersUri
- URI of watchers resource for selected issue. Usually obtained by calling Issue.getWatchers().getSelf()
progressMonitor
- progress monitor
RestClientException
- in case of problems (connectivity, malformed messages, invalid argument, etc.)Issue.getWatchers()
Votes getVotes(URI votesUri, ProgressMonitor progressMonitor)
votesUri
- URI of voters resource for selected issue. Usually obtained by calling Issue.getVotesUri()
progressMonitor
- progress monitor
RestClientException
- in case of problems (connectivity, malformed messages, invalid argument, etc.)Issue.getVotesUri()
Iterable<Transition> getTransitions(URI transitionsUri, ProgressMonitor progressMonitor)
transitionsUri
- URI of transitions resource of selected issue. Usually obtained by calling Issue.getTransitionsUri()
progressMonitor
- progress monitor
RestClientException
- in case of problems (connectivity, malformed messages, invalid argument, etc.)void transition(URI transitionsUri, TransitionInput transitionInput, ProgressMonitor progressMonitor)
transitionsUri
- URI of transitions resource of selected issue. Usually obtained by calling Issue.getTransitionsUri()
transitionInput
- data for this transition (fields modified, the comment, etc.)progressMonitor
- progress monitor
RestClientException
- in case of problems (connectivity, malformed messages, invalid argument, etc.)void vote(URI votesUri, ProgressMonitor progressMonitor)
votesUri
- URI of votes resource for selected issue. Usually obtained by calling Issue.getVotesUri()
progressMonitor
- progress monitor
RestClientException
- in case of problems (connectivity, malformed messages, invalid argument, etc.)void unvote(URI votesUri, ProgressMonitor progressMonitor)
votesUri
- URI of votes resource for selected issue. Usually obtained by calling Issue.getVotesUri()
progressMonitor
- progress monitor
RestClientException
- in case of problems (connectivity, malformed messages, invalid argument, etc.)void watch(URI watchersUri, ProgressMonitor progressMonitor)
watchersUri
- progressMonitor
- progress monitor
RestClientException
- in case of problems (connectivity, malformed messages, invalid argument, etc.)void unwatch(URI watchersUri, ProgressMonitor progressMonitor)
watchersUri
- progressMonitor
- progress monitor
RestClientException
- in case of problems (connectivity, malformed messages, invalid argument, etc.)void addWatcher(URI watchersUri, String username, ProgressMonitor progressMonitor)
watchersUri
- username
- user to add as a watcherprogressMonitor
- progress monitor
RestClientException
- in case of problems (connectivity, malformed messages, invalid argument, etc.)void removeWatcher(URI watchersUri, String username, ProgressMonitor progressMonitor)
watchersUri
- username
- user to remove from the watcher listprogressMonitor
- progress monitor
RestClientException
- in case of problems (connectivity, malformed messages, invalid argument, etc.)void linkIssue(LinkIssuesInput linkIssuesInput, ProgressMonitor progressMonitor)
linkIssuesInput
- details for the link and the comment (optional) to be createdprogressMonitor
- progress monitor
RestClientException
- in case of problems (connectivity, malformed messages, invalid argument, permissions, etc.)void addAttachment(ProgressMonitor progressMonitor, URI attachmentsUri, InputStream in, String filename)
progressMonitor
- progress monitorattachmentsUri
- where to upload the attachment. You can get this URI by examining issue resource firstin
- stream from which to read data to uploadfilename
- file name to use for the uploaded attachmentvoid addAttachments(ProgressMonitor progressMonitor, URI attachmentsUri, AttachmentInput... attachments)
progressMonitor
- progress monitorattachmentsUri
- where to upload the attachments. You can get this URI by examining issue resource firstattachments
- attachments to uploadvoid addAttachments(ProgressMonitor progressMonitor, URI attachmentsUri, File... files)
progressMonitor
- progress monitorattachmentsUri
- where to upload the attachments. You can get this URI by examining issue resource firstfiles
- files to upload@Beta InputStream getAttachment(ProgressMonitor pm, URI attachmentUri)
pm
- progress monitorattachmentUri
- URI for the attachment to retrieve
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |