Class FormDesignerBackupBean
- java.lang.Object
-
- de.xima.fc.gui.designer.form.bean.FormDesignerBackupBean
-
- All Implemented Interfaces:
Serializable
@RequestScoped @Named 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 Summary
Constructors Constructor Description FormDesignerBackupBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.primefaces.model.StreamedContent
getLocalBackup()
void
loadFormVersionBackupPersist()
Remote command for loading the persist of theFormVersionBackup
with the given ID.void
loadFormVersionBackupPersistFromJson(String fileName, com.alibaba.fastjson.JSONObject persistJson)
Loads the given persist JSON into the form designer.void
loadFormVersionBackupPersistFromLivecycle(String fileName, String livecycleXml)
Loads the given livecycle file into the form designer.void
loadFormVersionBackupPersistFromPdf(String fileName, String importId)
Loads the given PDF file into the form designer.void
loadFormVersionPersist()
Remote command for loading the persist of theFormVersion
with the given ID.
-
-
-
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 theFormVersionBackup
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.
-
loadFormVersionBackupPersistFromPdf
public void loadFormVersionBackupPersistFromPdf(String fileName, String importId)
Loads the given PDF file into the form designer.- Parameters:
fileName
- Name of the PDF form file.importId
- ID of the imported PDF file.- Since:
- 7.2.0
-
loadFormVersionPersist
public void loadFormVersionPersist()
Remote command for loading the persist of theFormVersion
with the given ID.
-
-