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
-
-
Constructor Summary
Constructors Constructor Description ComposerPackageProviderUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
createPackageIdUrl(TemplateVersion formVersion, UserAccount userAccount, boolean encodeUrl)
Create a Package ID URL with for the given form version and user account.static TemplateVersion
getTemplateVersionFromRequest(HttpServletRequest request)
Return the user account for the given PID request.static UserAccount
getUserAccountFromRequest(HttpServletRequest request)
Return the user account for the given PID request.
-
-
-
Field Detail
-
PARAM_PID
public static final String PARAM_PID
The pid URL parameter.- See Also:
- Constant Field Values
-
-
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 versionuserAccount
- the user accountencodeUrl
- 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
-
-