Class FormPersistHelper


  • public final class FormPersistHelper
    extends Object
    Helper for working with the form persist JSON from the client, such as applying increment patches.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • createPersistFromJson

        public static FormPersist createPersistFromJson​(com.alibaba.fastjson.JSONObject json)
        Parameters:
        json - Form persist JSON.
        Returns:
        A new form persist JSON wrapper with additional data, filled with the given form persist JSON data.
      • replace

        public static void replace​(FormPersist persist,
                                   com.alibaba.fastjson.JSONObject newPersistJson)
        Replaces the persist JSON with the new persist, updating all form items.
        Parameters:
        persist - Form persist to modify.
        newPersistJson - New persist JSON to use.