Interface returns Iterator
This commit is contained in:
parent
464a86ac51
commit
ebd1b2c5c1
|
@ -4,7 +4,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
||||||
|
|
||||||
# [v1.0.6-SNAPSHOT] - 2021-08-3
|
# [v1.0.6-SNAPSHOT] - 2021-08-3
|
||||||
Interface parameter "force"
|
Interface parameter "force"
|
||||||
MongoConcessioni returns iterator instead of iterable
|
Interfaces return iterator instead of iterable
|
||||||
|
|
||||||
# [v1.0.5] - 2020-12-9
|
# [v1.0.5] - 2020-12-9
|
||||||
Mongo Id in record
|
Mongo Id in record
|
||||||
|
|
|
@ -2,14 +2,16 @@ package org.gcube.application.geoportal.common.rest;
|
||||||
|
|
||||||
import org.gcube.application.geoportal.common.model.project.Project;
|
import org.gcube.application.geoportal.common.model.project.Project;
|
||||||
|
|
||||||
|
import java.util.Iterator;
|
||||||
|
|
||||||
public interface ProjectsI {
|
public interface ProjectsI {
|
||||||
|
|
||||||
|
|
||||||
public Iterable<Project> getAll() throws Exception;
|
public Iterator<Project> getAll() throws Exception;
|
||||||
public Iterable<Project> getByProfile(String profileId) throws Exception;
|
public Iterator<Project> getByProfile(String profileId) throws Exception;
|
||||||
public Project getById(String profileId,String id) throws Exception;
|
public Project getById(String profileId,String id) throws Exception;
|
||||||
public Iterable<Project> getByFilter(String filter)throws Exception;
|
public Iterator<Project> getByFilter(String filter)throws Exception;
|
||||||
public Iterable<Project> getByFilter(String filter, String profileId)throws Exception;
|
public Iterator<Project> getByFilter(String filter, String profileId)throws Exception;
|
||||||
public Project registrNew(String profileId, String jsonDocument)throws Exception;
|
public Project registrNew(String profileId, String jsonDocument)throws Exception;
|
||||||
public Project update(String profileId, String projectId,String jsonDocument) throws Exception;
|
public Project update(String profileId, String projectId,String jsonDocument) throws Exception;
|
||||||
public void deleteById(String profileId, String projectId)throws Exception;
|
public void deleteById(String profileId, String projectId)throws Exception;
|
||||||
|
|
Reference in New Issue