Added constants required to support getting only the number of total

items
This commit is contained in:
Luca Frosini 2021-02-03 16:26:53 +01:00
parent e8dbf44e68
commit 436662d8d9
2 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,7 @@ 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 COUNT_ONLY_PARAMETER = "countOnly";
public static final String ORGANIZATION_PARAMETER = "organization";
public static final String Q_KEY = "q";

View File

@ -9,8 +9,12 @@ import javax.xml.ws.WebServiceException;
*/
public interface Item<C,D> extends CRUD<C,D> {
String ITEMS = "items";
public static final String ITEMS = "items";
public static final String COUNT_KEY = "count";
public int count() throws WebServiceException;
public String list(Map<String,String> parameters) throws WebServiceException;
public String list(int limit, int offset) throws WebServiceException;