org.sonar.wsclient.services
Class ViolationQuery

java.lang.Object
  extended by org.sonar.wsclient.services.AbstractQuery<M>
      extended by org.sonar.wsclient.services.Query<Violation>
          extended by org.sonar.wsclient.services.ViolationQuery

Deprecated. in 3.6. Replaced by issues.

@Deprecated
public class ViolationQuery
extends Query<Violation>


Field Summary
static String BASE_URL
          Deprecated.  
 
Fields inherited from class org.sonar.wsclient.services.AbstractQuery
DEFAULT_TIMEOUT_MILLISECONDS
 
Constructor Summary
ViolationQuery(String resourceKey)
          Deprecated.  
 
Method Summary
static ViolationQuery createForResource(Resource resource)
          Deprecated.  
static ViolationQuery createForResource(String resourceIdOrKey)
          Deprecated.  
 int getDepth()
          Deprecated.  
 Integer getLimit()
          Deprecated.  
 Class<Violation> getModelClass()
          Deprecated.  
 String[] getPriorities()
          Deprecated. since 2.5 use getSeverities() instead. See http://jira.codehaus.org/browse/SONAR-1829
 String[] getQualifiers()
          Deprecated.  
 String[] getRuleKeys()
          Deprecated.  
 String[] getSeverities()
          Deprecated.  
 String getUrl()
          Deprecated. Must start with a slash, for example: /api/metrics
 ViolationQuery setDepth(int depth)
          Deprecated.  
 ViolationQuery setLimit(Integer limit)
          Deprecated.  
 ViolationQuery setPriorities(String... priorities)
          Deprecated. since 2.5 use setSeverities(String...) instead. See http://jira.codehaus.org/browse/SONAR-1829
 ViolationQuery setQualifiers(String... qualifiers)
          Deprecated.  
 ViolationQuery setRuleKeys(String... ruleKeys)
          Deprecated.  
 ViolationQuery setSeverities(String... severities)
          Deprecated.  
 
Methods inherited from class org.sonar.wsclient.services.AbstractQuery
appendUrlParameter, appendUrlParameter, appendUrlParameter, appendUrlParameter, encode, getBody, getLocale, getTimeoutMilliseconds, setLocale, setTimeoutMilliseconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_URL

public static final String BASE_URL
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

ViolationQuery

public ViolationQuery(String resourceKey)
Deprecated. 
Method Detail

getQualifiers

public String[] getQualifiers()
Deprecated. 

setQualifiers

public ViolationQuery setQualifiers(String... qualifiers)
Deprecated. 

getRuleKeys

public String[] getRuleKeys()
Deprecated. 

setRuleKeys

public ViolationQuery setRuleKeys(String... ruleKeys)
Deprecated. 

getSeverities

public String[] getSeverities()
Deprecated. 
Since:
2.5

setSeverities

public ViolationQuery setSeverities(String... severities)
Deprecated. 
Since:
2.5

getPriorities

@Deprecated
public String[] getPriorities()
Deprecated. since 2.5 use getSeverities() instead. See http://jira.codehaus.org/browse/SONAR-1829


setPriorities

@Deprecated
public ViolationQuery setPriorities(String... priorities)
Deprecated. since 2.5 use setSeverities(String...) instead. See http://jira.codehaus.org/browse/SONAR-1829


getDepth

public int getDepth()
Deprecated. 

setDepth

public ViolationQuery setDepth(int depth)
Deprecated. 

getLimit

public Integer getLimit()
Deprecated. 
Since:
2.5

setLimit

public ViolationQuery setLimit(Integer limit)
Deprecated. 
Since:
2.5

getUrl

public String getUrl()
Deprecated. 
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<Violation>
See Also:
AbstractQuery.encode(String), AbstractQuery.appendUrlParameter(StringBuilder, String, Object), AbstractQuery.appendUrlParameter(StringBuilder, String, Object[]), AbstractQuery.appendUrlParameter(StringBuilder, String, Date, boolean)

getModelClass

public Class<Violation> getModelClass()
Deprecated. 
Specified by:
getModelClass in class Query<Violation>

createForResource

public static ViolationQuery createForResource(Resource resource)
Deprecated. 

createForResource

public static ViolationQuery createForResource(String resourceIdOrKey)
Deprecated. 


Copyright © 2009-2013 SonarSource. All Rights Reserved.