Class FormJsonService
java.lang.Object
fr.paris.lutece.plugins.forms.service.json.AbstractFormJsonService
fr.paris.lutece.plugins.forms.service.json.FormJsonService
Json service to handle import/export
-
Constructor Summary
ConstructorsConstructorDescriptionFormJsonService(IFormDatabaseService formDatabaseService) CDI constructor-injection entry point. -
Method Summary
Modifier and TypeMethodDescriptionstatic FormJsonServiceDeprecated, for removal: This API element is subject to removal in a future version.jsonExportForm(int idForm) Export the form as a Json Object.voidjsonImportForm(String json, Locale locale) Import the form from a Json Object.Methods inherited from class fr.paris.lutece.plugins.forms.service.json.AbstractFormJsonService
jsonExportStep, jsonExportStepAsData, jsonImportStep, jsonImportStep
-
Constructor Details
-
FormJsonService
CDI constructor-injection entry point.- Parameters:
formDatabaseService- the database service
-
-
Method Details
-
getInstance
Deprecated, for removal: This API element is subject to removal in a future version.Use@Injectto obtain theFormJsonServiceinstance. This method will be removed in future versions.Returns the unique instance of theFormJsonServiceservice.- Returns:
- the singleton instance managed by the CDI container
-
jsonExportForm
Export the form as a Json Object.- Returns:
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
jsonImportForm
public void jsonImportForm(String json, Locale locale) throws com.fasterxml.jackson.core.JsonProcessingException Import the form from a Json Object.- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
@Injectto obtain theFormJsonServiceinstance.