Removed uneeded parameters

This commit is contained in:
Luca Frosini 2022-07-19 14:04:26 +02:00
parent ec50b30abc
commit f115e9b4b9
4 changed files with 8 additions and 8 deletions

View File

@ -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; 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; throws InvalidQueryException, ResourceRegistryException;
} }

View File

@ -431,13 +431,13 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient {
} }
@Override @Override
public String rawQuery(String query, int limit, String fetchPlan) public String rawQuery(String query)
throws InvalidQueryException, ResourceRegistryException { throws InvalidQueryException, ResourceRegistryException {
return rawQuery(query, limit, fetchPlan, false); return rawQuery(query, false);
} }
@Override @Override
public String rawQuery(String query, int limit, String fetchPlan, boolean raw) public String rawQuery(String query, boolean raw)
throws InvalidQueryException, ResourceRegistryException { throws InvalidQueryException, ResourceRegistryException {
try { try {

View File

@ -49,7 +49,7 @@ public class ResourceRegistryClientTest extends ContextTest {
@Test @Test
public void testQuery() throws ResourceRegistryException { public void testQuery() throws ResourceRegistryException {
String res = resourceRegistryClient.rawQuery("SELECT FROM V", 0, null); String res = resourceRegistryClient.rawQuery("SELECT FROM V");
logger.trace(res); logger.trace(res);
} }

View File

@ -193,13 +193,13 @@ public class ResourceRegistryClientTestWikiExamples extends ContextTest {
@Test @Test
public void rawQueryExample1() throws ResourceRegistryException, Exception{ 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); logger.debug("{}", jsonString);
} }
@Test @Test
public void rawQueryExample2() throws ResourceRegistryException, Exception{ 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); List<SoftwareFacet> list = ElementMapper.unmarshalList(SoftwareFacet.class, jsonString);
logger.debug("{}", list); logger.debug("{}", list);
} }