Package de.xima.fc.gui.bean.project
Class FormSaveExportBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class FormSaveExportBean extends AProjectDetailsBean implements Serializable
Bean for exporting a copy of the form. The user can select whether they want to export the entire form, or only a part of it.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.gui.bean.AEntityDetailsBean
entity
-
-
Constructor Summary
Constructors Constructor Description FormSaveExportBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.primefaces.model.StreamedContent
getExportFile()
Performs the form export and creates the binary export data for the chosen options.EFormExportPart
getFormExportPart()
void
initByDesigner(Long formVersionId, Long workflowVersionId)
Initializes the export dialog when opened form within the designer.boolean
isCanExportWebForm()
boolean
isCanExportWorkflow()
void
prepareExport()
AJAX callback invoked when the user clicks the export button.void
setFormExportPart(EFormExportPart formExportPart)
-
Methods inherited from class de.xima.fc.gui.bean.project.AProjectDetailsBean
getCurrentProjectBean, getDao, getProject, getSessionBean, reloadProject, save, setCurrentProjectBean, setEntity, setEntity, setProject, setProject, setSessionBean
-
Methods inherited from class de.xima.fc.gui.bean.AEntityDetailsBean
getEntity, init
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg
-
-
-
-
Method Detail
-
getExportFile
public org.primefaces.model.StreamedContent getExportFile()
Performs the form export and creates the binary export data for the chosen options.- Returns:
- The binary content with the form export.
-
getFormExportPart
public EFormExportPart getFormExportPart()
- Returns:
- The part of the form which should be exported.
-
initByDesigner
public void initByDesigner(Long formVersionId, Long workflowVersionId)
Initializes the export dialog when opened form within the designer.- Parameters:
formVersionId
- ID of the form version edited in the designer.workflowVersionId
- ID of the workflow version edited in the designer.
-
isCanExportWebForm
public boolean isCanExportWebForm()
- Returns:
- Whether it is possible to export the workflow (i.e. whether an form version to export exists).
-
isCanExportWorkflow
public boolean isCanExportWorkflow()
- Returns:
- Whether it is possible to export the workflow (i.e. whether the project uses the new workflow).
-
prepareExport
public void prepareExport()
AJAX callback invoked when the user clicks the export button. Prepares the export by collecting the data required for the export, which may depend on the selected options.
-
setFormExportPart
public void setFormExportPart(EFormExportPart formExportPart)
- Parameters:
formExportPart
- The part of the form which should be exported.
-
-