org.sonar.wsclient.services
Class ReviewCreateQuery

java.lang.Object
  extended by org.sonar.wsclient.services.AbstractQuery<MODEL>
      extended by org.sonar.wsclient.services.CreateQuery<Review>
          extended by org.sonar.wsclient.services.ReviewCreateQuery

public class ReviewCreateQuery
extends CreateQuery<Review>

Since:
2.9

Field Summary
 
Fields inherited from class org.sonar.wsclient.services.AbstractQuery
DEFAULT_TIMEOUT_MILLISECONDS
 
Constructor Summary
ReviewCreateQuery()
           
 
Method Summary
 String getAssignee()
           
 String getBody()
          Property comment is transmitted through request body as content may exceed URL size allowed by the server.
 String getComment()
           
 Class<Review> getModelClass()
           
 String getResolution()
           
 String getStatus()
           
 String getUrl()
          Must start with a slash, for example: /api/metrics
 Long getViolationId()
           
 ReviewCreateQuery setAssignee(String userLogin)
           
 ReviewCreateQuery setComment(String comment)
           
 ReviewCreateQuery setResolution(String resolution)
           
 ReviewCreateQuery setStatus(String status)
           
 ReviewCreateQuery setViolationId(Long violationId)
           
 
Methods inherited from class org.sonar.wsclient.services.AbstractQuery
appendUrlParameter, appendUrlParameter, appendUrlParameter, encode, getLocale, getTimeoutMilliseconds, setLocale, setTimeoutMilliseconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReviewCreateQuery

public ReviewCreateQuery()
Method Detail

getViolationId

public Long getViolationId()

setViolationId

public ReviewCreateQuery setViolationId(Long violationId)

getComment

public String getComment()

setComment

public ReviewCreateQuery setComment(String comment)

getAssignee

public String getAssignee()

setAssignee

public ReviewCreateQuery setAssignee(String userLogin)

getStatus

public String getStatus()

setStatus

public ReviewCreateQuery setStatus(String status)

getResolution

public String getResolution()

setResolution

public ReviewCreateQuery setResolution(String resolution)

getUrl

public String getUrl()
Description copied from class: AbstractQuery
Must start with a slash, for example: /api/metrics

IMPORTANT: In implementations of this method we must use helper methods to construct URL.

Specified by:
getUrl in class AbstractQuery<Review>
See Also:
AbstractQuery.encode(String), AbstractQuery.appendUrlParameter(StringBuilder, String, Object), AbstractQuery.appendUrlParameter(StringBuilder, String, Object[]), AbstractQuery.appendUrlParameter(StringBuilder, String, Date, boolean)

getBody

public String getBody()
Property comment is transmitted through request body as content may exceed URL size allowed by the server.

Overrides:
getBody in class AbstractQuery<Review>

getModelClass

public Class<Review> getModelClass()
Specified by:
getModelClass in class CreateQuery<Review>


Copyright © 2009-2012 SonarSource. All Rights Reserved.