Class FormOverviewHelper


  • public final class FormOverviewHelper
    extends Object
    Helper for creating and working with the form overview table in the designer.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • createCsvExport

        public static org.primefaces.model.StreamedContent createCsvExport​(Locale locale,
                                                                           List<FormOverviewRow> rows)
        Creates a CSV document with the given form overview rows. It contains one sheet with a column for each overview column.
        Parameters:
        locale - Locale to use.
        rows - Rows to include in the CSV document.
        Returns:
        The CSV document as streamed content.
      • createExcelExport

        public static org.primefaces.model.StreamedContent createExcelExport​(Locale locale,
                                                                             List<FormOverviewRow> rows)
        Creates an excel document with the given form overview rows. It contains one sheet with a column for each overview column.
        Parameters:
        locale - Locale to use.
        rows - Rows to include in the excel document.
        Returns:
        The excel document as streamed content.
      • createFormOverviewRows

        public static List<FormOverviewRow> createFormOverviewRows​(IEntityContext ec,
                                                                   Mandant client,
                                                                   Projekt project,
                                                                   Locale locale,
                                                                   FormVersion formVersion,
                                                                   String persist)
        Creates a list of all rows to show in the form overview table.
        Parameters:
        ec - Current entity context for accessing the database.
        client - Current client.
        project - Current project.
        locale - Current locale.
        formVersion - Current form version.
        persist - Form items for which to show the overview.
        Returns:
        A list of all rows to be shown in the form overview table.