public class BZHelper extends AbstractCommonIssueHelper implements IssueHelper
fromUtil| Constructor and Description |
|---|
BZHelper(String configurationFileProperty,
String configurationFileDefault) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(URL url)
A method to test if underlying implementatio accepts a given issue.n.
|
boolean |
addComment(int id,
String text,
CommentVisibility visibility,
double worktime) |
Issue |
findIssue(URL url)
Finds a given
Issue based on a URL parameter. |
SortedSet<Comment> |
loadCommentsFor(Bug bug) |
Map<String,SortedSet<Comment>> |
loadCommentsFor(Collection<String> bugIds) |
Map<String,Bug> |
loadIssues(Set<String> bugIds) |
boolean |
updateStatus(URL url,
Enum status)
Update the status ofan
Issuee. |
public Issue findIssue(URL url) throws IllegalArgumentException
IssueHelperIssue based on a URL parameter. Any client should make sure that
IssueHelper.accepts(java.net.URL) is called first.findIssue in interface IssueHelperurl - - the issue URLIssue or null if no Issue is foundIllegalArgumentException - - if the String is incorrect. This will be if the remote server
rejects the request.public boolean accepts(URL url)
IssueHelperaccepts in interface IssueHelperurl - - the issue URLpublic boolean updateStatus(URL url, Enum status)
IssueHelperIssuee. Before calling this method, IssueHelper.accepts(java.net.URL) should be calledupdateStatus in interface IssueHelperurl - - the issue URLstatus - - the status to update topublic SortedSet<Comment> loadCommentsFor(Bug bug) throws IllegalArgumentException
IllegalArgumentExceptionpublic Map<String,SortedSet<Comment>> loadCommentsFor(Collection<String> bugIds) throws IllegalArgumentException
IllegalArgumentExceptionpublic Map<String,Bug> loadIssues(Set<String> bugIds) throws IllegalArgumentException
IllegalArgumentExceptionpublic boolean addComment(int id,
String text,
CommentVisibility visibility,
double worktime)
Copyright © 2015 JBoss by Red Hat. All rights reserved.