Class ComposerPackageProviderUtils
java.lang.Object
com.avoka.fc.core.service.composer.ComposerPackageProviderUtils
Provide Composer Package integration utility methods.
- Since:
- 4.3.2
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
createPackageIdUrl
(TemplateVersion formVersion, UserAccount userAccount, boolean encodeUrl) Create a Package ID URL with for the given form version and user account.static TemplateVersion
Return the user account for the given PID request.static UserAccount
Return the user account for the given PID request.
-
Field Details
-
PARAM_PID
The pid URL parameter.- See Also:
-
-
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 versionuserAccount
- the user accountencodeUrl
- base64 encode the URL- Returns:
- package id URL to perform a callback with
-
getUserAccountFromRequest
Return the user account for the given PID request.- Parameters:
request
- the servlet request- Returns:
- the PID requesting user
-
getTemplateVersionFromRequest
Return the user account for the given PID request.- Parameters:
request
- the servlet request- Returns:
- the PID form template version
-