Interface IFormVersionHandler

    • Method Detail

      • create

        FormVersion create​(UserContext uc,
                           FormVersion fv,
                           Boolean setActive)
        Persists the given new form version in the database.
        Parameters:
        uc - the uc
        fv - the fv
        setActive - the set active
        Returns:
        the form version
      • getByVersionNumber

        FormVersion getByVersionNumber​(UserContext uc,
                                       Integer formVersionNumber,
                                       Long projectId)
        Gets a form version by its version number. Defaults to the project's current version if the version number is null or no form version with the given version number exists.
        Parameters:
        uc - The user context of the user who requests the form version.
        formVersionNumber - The version number of the form version to get.
        projectId - ID of the project to get the form version for.
        Returns:
        The form version with the given version number or the project's current version if the version number is null or no form version with the given version number exists.
        Since:
        8.3.0