Basic Plugin interface declaration

This commit is contained in:
Fabio Sinibaldi 2021-02-11 17:27:18 +01:00
parent 6cee0c1750
commit b71db8d104
4 changed files with 57 additions and 5 deletions

View File

@ -2,6 +2,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
# Changelog for sdi-interface
## [v1.3.0-SNAPSHOT] - 2020-09-03
Added support for generic client plugin
## [v1.2.0] - 2020-09-03
### Fixes

18
pom.xml
View File

@ -1,4 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
@ -8,13 +9,14 @@
</parent>
<groupId>org.gcube.spatial.data</groupId>
<artifactId>sdi-interface</artifactId>
<version>1.2.0</version>
<version>1.3.0-SNAPSHOT</version>
<name>SDI Interface</name>
<description>SDI Service interface and model</description>
<properties>
<properties>
<distroDirectory>${project.basedir}/distro</distroDirectory>
<gitBaseUrl>https://code-repo.d4science.org/gCubeSystem/</gitBaseUrl>
<geoAPI-version>3.0.1</geoAPI-version>
</properties>
@ -41,12 +43,12 @@
<dependencies>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>authorization-client</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
@ -68,6 +70,12 @@
</dependency>
<dependency>
<groupId>org.opengis</groupId>
<artifactId>geoapi</artifactId>
<version>${geoAPI-version}</version>
</dependency>
<!-- lombok -->
<dependency>

View File

@ -0,0 +1,5 @@
package org.gcube.spatial.data.plugins;
public interface GISServicePlugin {
}

View File

@ -1,8 +1,43 @@
package org.gcube.spatial.data.sdi.interfaces;
import org.gcube.spatial.data.sdi.model.faults.ConfigurationException;
import org.gcube.spatial.data.sdi.model.faults.InternalException;
import org.gcube.spatial.data.sdi.model.faults.RemoteException;
import org.gcube.spatial.data.sdi.model.gn.LoginLevel;
import org.gcube.spatial.data.sdi.model.gn.query.GNSearchRequest;
import org.gcube.spatial.data.sdi.model.gn.query.GNSearchResponse;
import org.gcube.spatial.data.sdi.model.metadata.MetadataInfo;
public interface GeoNetwork {
// MANAGEMENT
// public Credentials getCredentials(String host);
public GNSearchResponse query(GNSearchRequest request)
throws InternalException,RemoteException,ConfigurationException;
public Metadata getById(long id) throws InternalException,RemoteException,ConfigurationException;
public Metadata getById(String UUID) throws InternalException,RemoteException,ConfigurationException;
public String getByIdAsRawString(String UUID) throws InternalException,RemoteException,ConfigurationException;
public void login()throws InternalException,RemoteException,ConfigurationException;
public void login(LoginLevel level)throws InternalException,RemoteException,ConfigurationException;
public void logout() throws InternalException,RemoteException,ConfigurationException;
public MetadataInfo getInfo(Long id) throws InternalException,RemoteException,ConfigurationException;
public MetadataInfo getInfo(String uuid) throws InternalException,RemoteException,ConfigurationException;
}