|
1 | 1 | package fr.insee.pogues.api.remote.eno.transforms;
|
2 | 2 |
|
3 | 3 | import fr.insee.pogues.exception.EnoException;
|
| 4 | +import fr.insee.pogues.webservice.rest.PoguesException; |
4 | 5 |
|
5 | 6 | import java.io.IOException;
|
6 | 7 | import java.net.URISyntaxException;
|
7 | 8 | import java.util.Map;
|
8 | 9 |
|
| 10 | +/** |
| 11 | + * Client with methods to call Eno-WS external web-service. |
| 12 | + */ |
9 | 13 | public interface EnoClient {
|
10 |
| - /** |
11 |
| - * |
12 |
| - * Call the Eno API to convert ddi 3.2 data in ddi 3.3 |
13 |
| - * |
14 |
| - * @param inputAsString |
15 |
| - * @return String |
16 |
| - * @throws Exception |
17 |
| - */ |
18 |
| - String getDDI32ToDDI33 (String inputAsString) throws Exception; |
19 |
| - |
20 |
| - String getDDIToODT (String inputAsString) throws Exception; |
21 |
| - |
22 |
| - String getXMLPoguesToDDI (String inputAsString) throws Exception; |
| 14 | + |
| 15 | + /** Only used as a health-check for the Eno external web-service. */ |
| 16 | + void getParameters(); |
| 17 | + |
| 18 | + String getPoguesXmlToDDI(String inputAsString) throws EnoException, PoguesException; |
| 19 | + |
| 20 | + String getDDIToODT (String inputAsString) throws EnoException, PoguesException; |
23 | 21 |
|
24 | 22 | String getDDIToFO(String inputAsString) throws URISyntaxException, IOException, EnoException;
|
25 |
| - |
26 |
| - String getDDITOLunaticXML(String inputAsString) throws URISyntaxException, IOException, EnoException; |
27 |
| - |
28 |
| - String getDDITOLunaticJSON(String inputAsString, Map<String, Object> params) throws URISyntaxException, IOException, EnoException; |
29 |
| - |
30 |
| - String getDDITOXForms(String inputAsString) throws URISyntaxException, IOException, EnoException; |
31 |
| - |
32 |
| - String getJSONPoguesToLunaticJson(String inputAsString, Map<String, Object> params) throws URISyntaxException, IOException, EnoException; |
33 |
| - |
34 |
| - void getParameters () throws Exception; |
| 23 | + |
| 24 | + String getDDIToXForms(String inputAsString) throws URISyntaxException, IOException, EnoException; |
| 25 | + |
| 26 | + /** @deprecated Use Pogues to Lunatic method instead. */ |
| 27 | + @Deprecated(since = "4.9.2") |
| 28 | + String getDDIToLunaticJSON(String inputAsString, Map<String, Object> params) throws URISyntaxException, IOException, EnoException; |
| 29 | + |
| 30 | + String getPoguesJsonToLunaticJson(String inputAsString, Map<String, Object> params) throws URISyntaxException, IOException, EnoException; |
35 | 31 |
|
36 | 32 | }
|
0 commit comments