Class ComposerPackageProviderUtils

java.lang.Object
com.avoka.fc.core.service.composer.ComposerPackageProviderUtils

public class ComposerPackageProviderUtils extends Object
Provide Composer Package integration utility methods.
Since:
4.3.2
  • Field Details

  • Constructor Details

    • ComposerPackageProviderUtils

      public ComposerPackageProviderUtils()
  • Method Details

    • createPackageIdUrl

      public static String createPackageIdUrl(TemplateVersion formVersion, UserAccount userAccount, boolean encodeUrl)
      Create a Package ID URL with for the given form version and user account.
      Parameters:
      formVersion - the form version
      userAccount - the user account
      encodeUrl - base64 encode the URL
      Returns:
      package id URL to perform a callback with
    • getUserAccountFromRequest

      public static UserAccount getUserAccountFromRequest(jakarta.servlet.http.HttpServletRequest request)
      Return the user account for the given PID request.
      Parameters:
      request - the servlet request
      Returns:
      the PID requesting user
    • getTemplateVersionFromRequest

      public static TemplateVersion getTemplateVersionFromRequest(jakarta.servlet.http.HttpServletRequest request)
      Return the user account for the given PID request.
      Parameters:
      request - the servlet request
      Returns:
      the PID form template version