Removed uneeded parameters
This commit is contained in:
parent
ec50b30abc
commit
f115e9b4b9
|
@ -163,10 +163,10 @@ public interface ResourceRegistryClient {
|
|||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
public String rawQuery(final String query, final int limit, final String fetchPlan)
|
||||
public String rawQuery(final String query)
|
||||
throws InvalidQueryException, ResourceRegistryException;
|
||||
|
||||
public String rawQuery(final String query, final int limit, final String fetchPlan, boolean raw)
|
||||
public String rawQuery(final String query, boolean raw)
|
||||
throws InvalidQueryException, ResourceRegistryException;
|
||||
|
||||
}
|
||||
|
|
|
@ -431,13 +431,13 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient {
|
|||
}
|
||||
|
||||
@Override
|
||||
public String rawQuery(String query, int limit, String fetchPlan)
|
||||
public String rawQuery(String query)
|
||||
throws InvalidQueryException, ResourceRegistryException {
|
||||
return rawQuery(query, limit, fetchPlan, false);
|
||||
return rawQuery(query, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String rawQuery(String query, int limit, String fetchPlan, boolean raw)
|
||||
public String rawQuery(String query, boolean raw)
|
||||
throws InvalidQueryException, ResourceRegistryException {
|
||||
|
||||
try {
|
||||
|
|
|
@ -49,7 +49,7 @@ public class ResourceRegistryClientTest extends ContextTest {
|
|||
|
||||
@Test
|
||||
public void testQuery() throws ResourceRegistryException {
|
||||
String res = resourceRegistryClient.rawQuery("SELECT FROM V", 0, null);
|
||||
String res = resourceRegistryClient.rawQuery("SELECT FROM V");
|
||||
logger.trace(res);
|
||||
}
|
||||
|
||||
|
|
|
@ -193,13 +193,13 @@ public class ResourceRegistryClientTestWikiExamples extends ContextTest {
|
|||
|
||||
@Test
|
||||
public void rawQueryExample1() throws ResourceRegistryException, Exception{
|
||||
String jsonString = resourceRegistryClient.rawQuery("SELECT FROM SoftwareFacet", 1, null, true);
|
||||
String jsonString = resourceRegistryClient.rawQuery("SELECT FROM SoftwareFacet", true);
|
||||
logger.debug("{}", jsonString);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void rawQueryExample2() throws ResourceRegistryException, Exception{
|
||||
String jsonString = resourceRegistryClient.rawQuery("SELECT FROM SoftwareFacet", 1, null);
|
||||
String jsonString = resourceRegistryClient.rawQuery("SELECT FROM SoftwareFacet");
|
||||
List<SoftwareFacet> list = ElementMapper.unmarshalList(SoftwareFacet.class, jsonString);
|
||||
logger.debug("{}", list);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue