Class FormDesignerBackupBean

  • All Implemented Interfaces:
    Serializable

    @RequestScoped
    @Named("formDesignerBackupBean")
    public class FormDesignerBackupBean
    extends Object
    implements Serializable
    Bean for the form designer. Lists or loads form backup versions and can also create a local export of the current form.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • Constructor Detail

      • FormDesignerBackupBean

        public FormDesignerBackupBean()
    • Method Detail

      • getLocalBackup

        public org.primefaces.model.StreamedContent getLocalBackup()
        Returns:
        The streamed content with the local form export JSON.
      • loadFormVersionBackupPersist

        public void loadFormVersionBackupPersist()
        Remote command for loading the persist of the FormVersionBackup with the given ID.
      • loadFormVersionBackupPersistFromJson

        public void loadFormVersionBackupPersistFromJson​(String fileName,
                                                         com.alibaba.fastjson.JSONObject persistJson)
        Loads the given persist JSON into the form designer.
        Parameters:
        fileName - Name of the persist JSON file.
        persistJson - Persist JSON to load.
      • loadFormVersionBackupPersistFromLivecycle

        public void loadFormVersionBackupPersistFromLivecycle​(String fileName,
                                                              String livecycleXml)
        Loads the given livecycle file into the form designer.
        Parameters:
        fileName - Name of the livecycle file.
        livecycleXml - Livecycle file to load.
      • loadFormVersionPersist

        public void loadFormVersionPersist()
        Remote command for loading the persist of the FormVersion with the given ID.