Skip to content

Commit 3dd68f8

Browse files
committed
fix: visualize web with context (#326)
* test: add json questionnaire in resources * fix: add context param in pogues to lunatic endpoint * refactor: eno client and visualize related classes * chore: bump version
1 parent 38ffb9e commit 3dd68f8

15 files changed

+453
-312
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<groupId>fr.insee</groupId>
1414
<artifactId>Pogues-BO</artifactId>
1515
<packaging>jar</packaging>
16-
<version>4.9.2</version>
16+
<version>4.9.2-SNAPSHOT.1</version>
1717
<name>Pogues-Back-Office</name>
1818

1919
<properties>
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,32 @@
11
package fr.insee.pogues.api.remote.eno.transforms;
22

33
import fr.insee.pogues.exception.EnoException;
4+
import fr.insee.pogues.webservice.rest.PoguesException;
45

56
import java.io.IOException;
67
import java.net.URISyntaxException;
78
import java.util.Map;
89

10+
/**
11+
* Client with methods to call Eno-WS external web-service.
12+
*/
913
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;
2321

2422
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;
3531

3632
}

src/main/java/fr/insee/pogues/api/remote/eno/transforms/EnoClientImpl.java

-180
This file was deleted.

0 commit comments

Comments
 (0)