-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
15 changed files
with
453 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 19 additions & 23 deletions
42
src/main/java/fr/insee/pogues/api/remote/eno/transforms/EnoClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,32 @@ | ||
package fr.insee.pogues.api.remote.eno.transforms; | ||
|
||
import fr.insee.pogues.exception.EnoException; | ||
import fr.insee.pogues.webservice.rest.PoguesException; | ||
|
||
import java.io.IOException; | ||
import java.net.URISyntaxException; | ||
import java.util.Map; | ||
|
||
/** | ||
* Client with methods to call Eno-WS external web-service. | ||
*/ | ||
public interface EnoClient { | ||
/** | ||
* | ||
* Call the Eno API to convert ddi 3.2 data in ddi 3.3 | ||
* | ||
* @param inputAsString | ||
* @return String | ||
* @throws Exception | ||
*/ | ||
String getDDI32ToDDI33 (String inputAsString) throws Exception; | ||
|
||
String getDDIToODT (String inputAsString) throws Exception; | ||
|
||
String getXMLPoguesToDDI (String inputAsString) throws Exception; | ||
|
||
/** Only used as a health-check for the Eno external web-service. */ | ||
void getParameters(); | ||
|
||
String getPoguesXmlToDDI(String inputAsString) throws EnoException, PoguesException; | ||
|
||
String getDDIToODT (String inputAsString) throws EnoException, PoguesException; | ||
|
||
String getDDIToFO(String inputAsString) throws URISyntaxException, IOException, EnoException; | ||
|
||
String getDDITOLunaticXML(String inputAsString) throws URISyntaxException, IOException, EnoException; | ||
|
||
String getDDITOLunaticJSON(String inputAsString, Map<String, Object> params) throws URISyntaxException, IOException, EnoException; | ||
|
||
String getDDITOXForms(String inputAsString) throws URISyntaxException, IOException, EnoException; | ||
|
||
String getJSONPoguesToLunaticJson(String inputAsString, Map<String, Object> params) throws URISyntaxException, IOException, EnoException; | ||
|
||
void getParameters () throws Exception; | ||
|
||
String getDDIToXForms(String inputAsString) throws URISyntaxException, IOException, EnoException; | ||
|
||
/** @deprecated Use Pogues to Lunatic method instead. */ | ||
@Deprecated(since = "4.9.2") | ||
String getDDIToLunaticJSON(String inputAsString, Map<String, Object> params) throws URISyntaxException, IOException, EnoException; | ||
|
||
String getPoguesJsonToLunaticJson(String inputAsString, Map<String, Object> params) throws URISyntaxException, IOException, EnoException; | ||
|
||
} |
180 changes: 0 additions & 180 deletions
180
src/main/java/fr/insee/pogues/api/remote/eno/transforms/EnoClientImpl.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.