Interface IFormVersionDao

    • Method Detail

      • createDefaultFormVersion

        FormVersion createDefaultFormVersion​(IEntityContext ec,
                                             Projekt project,
                                             IUser user)
        Returns a new default form version on the basis of a given project.
        Parameters:
        ec - IEntityContext to use
        project - Projekt context in which to create the form version
        user - IUser user for form file data informations
        Returns:
        default FormVersion for the given project
        Since:
        8.0.0
      • getByVersionNumber

        FormVersion getByVersionNumber​(IEntityContext ec,
                                       Integer formVersionNumber,
                                       Long projectId)
        Gets the form version with the given version number. Returns the project's default version if the version number is null or no such version exists.
        Parameters:
        ec - Entity context for accessing the database
        formVersionNumber - Version number of the form version to get.
        projectId - ID of the project containing the form version.
        Returns:
        Form version with the given version number
      • getByFormThemePlugin

        List<FormVersion> getByFormThemePlugin​(IEntityContext ec,
                                               Mandant client,
                                               String formThemePluginKey)
        Finds all form versions that are associated with any theme from the given form theme plugin.
        Parameters:
        ec - Entity context for accessing the database.
        client - The client to which to limit the search. May be null to search all clients.
        formThemePluginKey - The key of the form theme plugin.
        Returns:
        All form versions that are associated with a theme from the given form theme plugin.
      • getByFormTheme

        List<FormVersion> getByFormTheme​(IEntityContext ec,
                                         Mandant client,
                                         FormThemeReference formTheme)
        Finds all form versions that are associated with the given form theme.
        Parameters:
        ec - Entity context for accessing the database.
        client - The client to which to limit the search. May be null to search all clients.
        formTheme - The form theme reference to search for.
        Returns:
        All form versions that are associated with the given form theme.