public interface IssueTrackerService
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCommentToIssue(Collection<Issue> issues,
Comment comment)
Adds the
Comment to all of the provided Issue objects. |
void |
addCommentToIssue(Issue issue,
Comment comment)
Adds a new comment to the specified issue.
|
boolean |
addCommentToIssue(Map<Issue,Comment> commentMap)
Adds the
Comment to the associated Issue object for all Issue/Comment
pairs in the Map. |
Issue |
createIssue(IssueCreationDetails details)
Create skeletal issue.
|
default void |
destroy()
allows to destroy and deallocate resources
|
Issue |
getIssue(URL url)
Retrieve an issue object associated with the given
URL. |
List<Issue> |
getIssues(Collection<URL> urls)
Retrieve all issues associated with the provided URLs.
|
List<Issue> |
getIssuesAssociatedWith(PullRequest pullRequest)
Retrieve all Issues associated with the provided pullRequest object.
|
String |
getTrackerID()
Return string format of tracker id, this value, can be used as key/index and compared to
AbstractIssueTracker#convertToTrackerID(). |
boolean |
init(AphroditeConfig config)
Initiate this
IssueTrackerService using the supplied AphroditeConfig. |
boolean |
init(IssueTrackerConfig config)
Initiate this
IssueTrackerService using the supplied IssueTrackerConfig. |
boolean |
isCPReleased(String cpVersion)
Check if a given CP version is released.
|
List<Issue> |
searchIssues(SearchCriteria searchCriteria)
Return all issues which match the passed
SearchCriteria. |
List<Issue> |
searchIssuesByFilter(URL filterUrl)
Return all issues which match the provided filter.
|
boolean |
updateIssue(Issue issue)
Update an
Issue at the remote issue tracker service. |
boolean |
urlExists(URL url)
Checks whether the provided
URL is on the same host as this service. |
boolean init(AphroditeConfig config)
IssueTrackerService using the supplied AphroditeConfig.
The first IssueTrackerConfig object found in the AphroditeConfig object,
is used to initiate the service and is subsequently removed from the config to prevent the same
service being initiated twice.config - a AphroditeConfig object containing at least one
IssueTrackerConfig object.true if the service was initialised without errors, false otherwise.IllegalArgumentException - if no IssueTrackerConfig objects are present.boolean init(IssueTrackerConfig config)
IssueTrackerService using the supplied IssueTrackerConfig.config - a IssueTrackerConfig object containing all configuration information.true if the service was initialised without errors, false otherwise.boolean urlExists(URL url)
URL is on the same host as this service.url - the URL to check.URL has the same host as this service, otherwise false.NullPointerException - if the provided URL is null.String getTrackerID()
AbstractIssueTracker#convertToTrackerID().List<Issue> getIssuesAssociatedWith(PullRequest pullRequest)
pullRequest - the PullRequest object whoms associated Issues should be returned.Issue objects, or an empty list if no issues can be found.Issue getIssue(URL url) throws NotFoundException
URL.url - the URL of the issue to be retrieved.Issue associated with the provided URK.NotFoundException - if the provided URL is not associated with an issue.List<Issue> getIssues(Collection<URL> urls)
IssueTrackerServer. If the provided URLs
collection is empty, or no issues are found, then an empty List is returned.urls - a collection of issue URLs.Issue objects associated with the provided urls.List<Issue> searchIssues(SearchCriteria searchCriteria)
SearchCriteria.searchCriteria - all set fields will be search for.Issue objects which match the specified searchCriteria,
or an empty list if no issues match the searched criteria or the searchCriteria object contains no entries.List<Issue> searchIssuesByFilter(URL filterUrl) throws NotFoundException
filterUrl - the url of the issue tracker filtered to be applied.Issue objects which are returned by the provided filter.NotFoundException - if the filterURL is not associated with any filters.boolean updateIssue(Issue issue) throws NotFoundException, AphroditeException
Issue at the remote issue tracker service.
Note, this does not update issue comments or an issues description.
To add a new comment, use addCommentToIssue(Issue, Comment)issue - the issue to be updated at the IssueTrackerServiceNotFoundException - if the provided Issue cannot be found at the IssueTracker.AphroditeException - if the user credentials supplied for this issue track do not have
permission to update this issue, or a field within this issue.void addCommentToIssue(Issue issue, Comment comment) throws NotFoundException
issue - the issue to add a new comment to.comment - the comment to be added to the issue.NotFoundException - if the provided Issue cannot be found at the IssueTracker.boolean addCommentToIssue(Map<Issue,Comment> commentMap)
Comment to the associated Issue object for all Issue/Comment
pairs in the Map. Null comments are ignored.commentMap - the map containing all Issues that are to be updated and the associated comments.boolean addCommentToIssue(Collection<Issue> issues, Comment comment)
Comment to all of the provided Issue objects.issues - a collection of all issues that the comment should be added to.comment - the comment to be added to all issues.boolean isCPReleased(String cpVersion)
cpVersion - the CP version to be tested. Jira accepts GA version format x.y.z.GA, e.g. 7.1.2.GA. Bugzilla accepts version format x.y.z, e.g. 6.4.18.default void destroy()
Issue createIssue(IssueCreationDetails details) throws MalformedURLException, NotFoundException
details - - implementation of issue detail proper for identified trackerNotFoundExceptionMalformedURLExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.