Class AbstractFormJsonService

  • Direct Known Subclasses:
    FormJsonService

    public abstract class AbstractFormJsonService
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String jsonExportStep​(int idForm, int idStep)
      Export the step as a Json Object.
      StepJsonData jsonExportStepAsData​(int idForm, int idStep)
      Export the step as a StepJsonData Object.
      void jsonImportStep​(int idForm, StepJsonData jsonData, java.util.Locale locale)  
      void jsonImportStep​(int idForm, java.lang.String json, java.util.Locale locale)
      Import the step from a Json Object.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • jsonExportStep

        public java.lang.String jsonExportStep​(int idForm,
                                               int idStep)
                                        throws com.fasterxml.jackson.core.JsonProcessingException
        Export the step as a Json Object.
        Returns:
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • jsonExportStepAsData

        public StepJsonData jsonExportStepAsData​(int idForm,
                                                 int idStep)
                                          throws com.fasterxml.jackson.core.JsonProcessingException
        Export the step as a StepJsonData Object.
        Returns:
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • jsonImportStep

        @Transactional("forms.transactionManager")
        public void jsonImportStep​(int idForm,
                                   java.lang.String json,
                                   java.util.Locale locale)
                            throws com.fasterxml.jackson.core.JsonProcessingException
        Import the step from a Json Object.
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • jsonImportStep

        @Transactional("forms.transactionManager")
        public void jsonImportStep​(int idForm,
                                   StepJsonData jsonData,
                                   java.util.Locale locale)