Class ComposerPackageProviderUtils


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

      • ComposerPackageProviderUtils

        public ComposerPackageProviderUtils()
    • Method Detail

      • 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​(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​(HttpServletRequest request)
        Return the user account for the given PID request.
        Parameters:
        request - the servlet request
        Returns:
        the PID form template version