Class FormJsonService

java.lang.Object
fr.paris.lutece.plugins.forms.service.json.AbstractFormJsonService
fr.paris.lutece.plugins.forms.service.json.FormJsonService

public class FormJsonService extends AbstractFormJsonService
Json service to handle import/export
  • Field Details

  • Method Details

    • getInstance

      public static FormJsonService getInstance()
    • jsonExportForm

      public String jsonExportForm(int idForm) throws com.fasterxml.jackson.core.JsonProcessingException
      Export the form as a Json Object.
      Returns:
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • jsonImportForm

      @Transactional("forms.transactionManager") 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