Added API to list items by specifying query parameters (used for direct
query on Slr via Ckan package_search API)
This commit is contained in:
parent
91b18d2bce
commit
64b8046ad4
|
@ -10,8 +10,12 @@ public class GCatConstants {
|
|||
public static final String APPLICATION_JSON_CHARSET_UTF_8 = "application/json;charset=UTF-8";
|
||||
public static final String LIMIT_PARAMETER = "limit";
|
||||
public static final String OFFSET_PARAMETER = "offset";
|
||||
public static final String ORGANIZATION_PARAMETER = "org";
|
||||
|
||||
public static final String ORGANIZATION_PARAMETER = "organization";
|
||||
public static final String Q_KEY = "q";
|
||||
|
||||
public static final String SOCIAL_POST_PARAMETER = "social_post";
|
||||
|
||||
public static final String ORGANIZATION_FILTER_TEMPLATE = ORGANIZATION_PARAMETER + ":%s";
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package org.gcube.gcat.api.interfaces;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.xml.ws.WebServiceException;
|
||||
|
||||
/**
|
||||
|
@ -9,6 +11,8 @@ public interface Item<C,D> extends CRUD<C,D> {
|
|||
|
||||
String ITEMS = "items";
|
||||
|
||||
public String list(Map<String,String> parameters) throws WebServiceException;
|
||||
|
||||
public String list(int limit, int offset) throws WebServiceException;
|
||||
|
||||
public D delete(String name, boolean purge) throws WebServiceException;
|
||||
|
|
Loading…
Reference in New Issue