Added count methods for Organization, Groups and Profiles refs #20629

This commit is contained in:
Luca Frosini 2021-02-03 21:55:41 +01:00
parent 2eb9d98c58
commit 8247359abd
3 changed files with 12 additions and 4 deletions

View File

@ -7,8 +7,10 @@ import javax.xml.ws.WebServiceException;
*/
public interface Group<C,D> extends CRUD<C,D> {
String GROUPS = "groups";
public static final String GROUPS = "groups";
public int count() throws WebServiceException;
public String list(int limit, int offset) throws WebServiceException;
public String patch(String name, String json) throws WebServiceException;

View File

@ -1,12 +1,16 @@
package org.gcube.gcat.api.interfaces;
import javax.xml.ws.WebServiceException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public interface Organization<C,D> extends CRUD<C,D> {
String ORGANIZATIONS = "organizations";
public static final String ORGANIZATIONS = "organizations";
public int count() throws WebServiceException;
public String list(int limit, int offset);
public String patch(String name, String json);

View File

@ -5,10 +5,12 @@ package org.gcube.gcat.api.interfaces;
*/
public interface Profile<C,D> {
String PROFILES = "profiles";
public static final String PROFILES = "profiles";
public static final String SCHEMA = "SCHEMA";
public int count();
public String list();
public C create(String name, String xml);