Interface returns Iterator
This commit is contained in:
parent
74ccb666bc
commit
464a86ac51
|
@ -2,6 +2,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||
|
||||
# Changelog for org.gcube.application.geoportal-common
|
||||
|
||||
# [v1.0.6-SNAPSHOT] - 2021-08-3
|
||||
Interface parameter "force"
|
||||
MongoConcessioni returns iterator instead of iterable
|
||||
|
||||
# [v1.0.5] - 2020-12-9
|
||||
Mongo Id in record
|
||||
Mongo Concessioni interface
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.gcube.application</groupId>
|
||||
<artifactId>geoportal-common</artifactId>
|
||||
<version>1.0.5</version>
|
||||
<version>1.0.6-SNAPSHOT</version>
|
||||
<name>Geoportal Common</name>
|
||||
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
|||
<dependency>
|
||||
<groupId>org.gcube.distribution</groupId>
|
||||
<artifactId>gcube-bom</artifactId>
|
||||
<version>2.0.0</version>
|
||||
<version>2.0.1</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
|
|
@ -32,6 +32,7 @@ public class InterfaceConstants {
|
|||
public static final String ORDER_BY="order_by";
|
||||
public static final String LIMIT="limit";
|
||||
public static final String OFFSET="offset";
|
||||
public static final String FORCE="force";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -2,12 +2,14 @@ package org.gcube.application.geoportal.common.rest;
|
|||
|
||||
import org.gcube.application.geoportal.common.model.legacy.Concessione;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
public interface MongoConcessioni {
|
||||
|
||||
public Concessione createNew(Concessione c) throws Exception;
|
||||
public void deleteById(String id) throws Exception;
|
||||
public Concessione getById(String id) throws Exception;
|
||||
public Iterable<Concessione> getList()throws Exception;
|
||||
public Iterator<Concessione> getList()throws Exception;
|
||||
public Concessione publish(String id) throws Exception;
|
||||
public Concessione registerFile(String id, AddSectionToConcessioneRequest request) throws Exception;
|
||||
public Concessione update(String id, String jsonUpdate) throws Exception;
|
||||
|
|
Reference in New Issue