org.sonar.wsclient.issue.internal
Class DefaultIssueClient

java.lang.Object
  extended by org.sonar.wsclient.issue.internal.DefaultIssueClient
All Implemented Interfaces:
IssueClient

public class DefaultIssueClient
extends Object
implements IssueClient

Do not instantiate this class, but use SonarClient.issueClient().


Constructor Summary
DefaultIssueClient(HttpRequestFactory requestFactory)
           
 
Method Summary
 List<String> actions(String issueKey)
           
 IssueComment addComment(String issueKey, String markdownText)
           
 Issue assign(String issueKey, String assignee)
          Assign an existing issue to a user.
 Issue assignToMe(String issueKey)
          Assign an existing issue to current user.
 BulkChange bulkChange(BulkChangeQuery query)
          Execute bulk change on a list of issues
 List<IssueChange> changes(String issueKey)
           
 Issue create(NewIssue newIssue)
           
 Issue doAction(String issueKey, String action)
           
 Issue doTransition(String issueKey, String transition)
           
 Issues find(IssueQuery query)
          Wrap the web service /api/issues/search in order to search for issues.
 Issue plan(String issueKey, String actionPlanKey)
          Link an existing issue to an action plan.
 Issue setSeverity(String issueKey, String severity)
          Change the severity of an existing issue.
 List<String> transitions(String issueKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIssueClient

public DefaultIssueClient(HttpRequestFactory requestFactory)
Method Detail

find

public Issues find(IssueQuery query)
Description copied from interface: IssueClient
Wrap the web service /api/issues/search in order to search for issues.

Specified by:
find in interface IssueClient

create

public Issue create(NewIssue newIssue)
Specified by:
create in interface IssueClient

setSeverity

public Issue setSeverity(String issueKey,
                         String severity)
Description copied from interface: IssueClient
Change the severity of an existing issue. Supported values are "INFO", "MINOR", "MAJOR", "CRITICAL" and "BLOCKER".

Specified by:
setSeverity in interface IssueClient
Returns:
the updated issue

assign

public Issue assign(String issueKey,
                    @Nullable
                    String assignee)
Description copied from interface: IssueClient
Assign an existing issue to a user. A null assignee removes the assignee.

Specified by:
assign in interface IssueClient
Returns:
the updated issue

assignToMe

public Issue assignToMe(String issueKey)
Description copied from interface: IssueClient
Assign an existing issue to current user.

Specified by:
assignToMe in interface IssueClient
Returns:
the updated issue

plan

public Issue plan(String issueKey,
                  @Nullable
                  String actionPlanKey)
Description copied from interface: IssueClient
Link an existing issue to an action plan. A null action plan unlinks the issue.

Specified by:
plan in interface IssueClient

addComment

public IssueComment addComment(String issueKey,
                               String markdownText)
Specified by:
addComment in interface IssueClient

transitions

public List<String> transitions(String issueKey)
Specified by:
transitions in interface IssueClient

doTransition

public Issue doTransition(String issueKey,
                          String transition)
Specified by:
doTransition in interface IssueClient

actions

public List<String> actions(String issueKey)
Specified by:
actions in interface IssueClient

doAction

public Issue doAction(String issueKey,
                      String action)
Specified by:
doAction in interface IssueClient

bulkChange

public BulkChange bulkChange(BulkChangeQuery query)
Description copied from interface: IssueClient
Execute bulk change on a list of issues

Specified by:
bulkChange in interface IssueClient

changes

public List<IssueChange> changes(String issueKey)
Specified by:
changes in interface IssueClient
Returns:
the list of changes of an issue


Copyright © 2009-2014 SonarSource. All Rights Reserved.