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
    • Constructor Detail

      • FormSaveExportBean

        public FormSaveExportBean()
    • 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.