Interface returns Iterator

This commit is contained in:
Fabio Sinibaldi 2021-08-03 12:37:43 +02:00
parent 464a86ac51
commit ebd1b2c5c1
2 changed files with 7 additions and 5 deletions

View File

@ -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
Interface parameter "force"
MongoConcessioni returns iterator instead of iterable
Interfaces return iterator instead of iterable
# [v1.0.5] - 2020-12-9
Mongo Id in record

View File

@ -2,14 +2,16 @@ package org.gcube.application.geoportal.common.rest;
import org.gcube.application.geoportal.common.model.project.Project;
import java.util.Iterator;
public interface ProjectsI {
public Iterable<Project> getAll() throws Exception;
public Iterable<Project> getByProfile(String profileId) throws Exception;
public Iterator<Project> getAll() throws Exception;
public Iterator<Project> getByProfile(String profileId) throws Exception;
public Project getById(String profileId,String id) throws Exception;
public Iterable<Project> getByFilter(String filter)throws Exception;
public Iterable<Project> getByFilter(String filter, String profileId)throws Exception;
public Iterator<Project> getByFilter(String filter)throws Exception;
public Iterator<Project> getByFilter(String filter, String profileId)throws Exception;
public Project registrNew(String profileId, String jsonDocument)throws Exception;
public Project update(String profileId, String projectId,String jsonDocument) throws Exception;
public void deleteById(String profileId, String projectId)throws Exception;