From 2d9012587dd79c6ff42be319802ea91cb21dca09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Basti=C3=A3o=20Silva?= Date: Fri, 25 May 2018 15:51:47 +0100 Subject: [PATCH] Updated to 3.X API --- pom.xml | 2 +- .../plugin/demo/dicooglepluginsample/RSIPluginSet.java | 6 ------ .../dicoogle/plugin/demo/dicooglepluginsample/RSIQuery.java | 6 ++++-- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 6ebd71c..f8c426b 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ UTF-8 - 2.4.0 + 3.0.0-SNAPSHOT 9.0.3.v20130506 diff --git a/src/main/java/pt/ieeta/dicoogle/plugin/demo/dicooglepluginsample/RSIPluginSet.java b/src/main/java/pt/ieeta/dicoogle/plugin/demo/dicooglepluginsample/RSIPluginSet.java index 4f69cb6..6bf6bd2 100644 --- a/src/main/java/pt/ieeta/dicoogle/plugin/demo/dicooglepluginsample/RSIPluginSet.java +++ b/src/main/java/pt/ieeta/dicoogle/plugin/demo/dicooglepluginsample/RSIPluginSet.java @@ -26,7 +26,6 @@ import org.restlet.resource.ServerResource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import pt.ua.dicoogle.sdk.GraphicalInterface; import pt.ua.dicoogle.sdk.IndexerInterface; import pt.ua.dicoogle.sdk.JettyPluginInterface; import pt.ua.dicoogle.sdk.PluginSet; @@ -126,9 +125,4 @@ public ConfigurationHolder getSettings() { return this.settings; } - @Override - public Collection getGraphicalPlugins() { - // Graphical plugins are deprecated. Do not use or provide any. - return Collections.EMPTY_LIST; - } } \ No newline at end of file diff --git a/src/main/java/pt/ieeta/dicoogle/plugin/demo/dicooglepluginsample/RSIQuery.java b/src/main/java/pt/ieeta/dicoogle/plugin/demo/dicooglepluginsample/RSIQuery.java index 5355421..507e167 100644 --- a/src/main/java/pt/ieeta/dicoogle/plugin/demo/dicooglepluginsample/RSIQuery.java +++ b/src/main/java/pt/ieeta/dicoogle/plugin/demo/dicooglepluginsample/RSIQuery.java @@ -30,12 +30,13 @@ import pt.ua.dicoogle.sdk.QueryInterface; import pt.ua.dicoogle.sdk.datastructs.SearchResult; import pt.ua.dicoogle.sdk.settings.ConfigurationHolder; +import pt.ua.dicoogle.sdk.utils.QueryException; /** Example of a query provider. * - * @author Luís A. Bastião Silva - + * @author Luís A. Bastião Silva - */ -public class RSIQuery implements QueryInterface { +public class RSIQuery implements QueryInterface { private static final Logger logger = LoggerFactory.getLogger(RSIQuery.class); private boolean enabled; @@ -79,6 +80,7 @@ public Iterable query(String query, Object... parameters) { return results; } + @Override public String getName() { return "RSI";