Package de.xima.fc.user_portal.common
Class UserPortalUtils
- java.lang.Object
 - 
- de.xima.fc.user_portal.common.UserPortalUtils
 
 
- 
public class UserPortalUtils extends Object
This class provides utility methods for the user portal.- Since:
 - 8.2.0
 - Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Constructor Summary
Constructors Constructor Description UserPortalUtils() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<FormRecordModel>createRecordList(List<de.xima.fc.api.rest.pub.client.user_portal.model.UserPortalFormRecordResource> formRecordList, Locale locale)Creates a list of form record models from a list of form record resources.static StringformatOffsetTimestampToReadableString(OffsetDateTime offsetDateTime, Locale locale)Formats an offset date time to a readable string.static StringworkaroundGetDownloadLink(de.xima.fc.api.rest.pub.client.user_portal.model.UserPortalFileResource resource, UserPortalViewContext portalContext, IUserPortalInvocationContext upc)TODO Use the links property of the file resource to get the download link. 
 - 
 
- 
- 
Method Detail
- 
workaroundGetDownloadLink
public static String workaroundGetDownloadLink(de.xima.fc.api.rest.pub.client.user_portal.model.UserPortalFileResource resource, UserPortalViewContext portalContext, IUserPortalInvocationContext upc)
TODO Use the links property of the file resource to get the download link. The REST API does not yet include a TODO download link. ...- Parameters:
 resource- A file resource.- Returns:
 - The download link for the file resource.
 
 
- 
createRecordList
public static List<FormRecordModel> createRecordList(List<de.xima.fc.api.rest.pub.client.user_portal.model.UserPortalFormRecordResource> formRecordList, Locale locale)
Creates a list of form record models from a list of form record resources.- Parameters:
 formRecordList- The list of form record resources.locale- The locale to use for formatting the submit timestamp.- Returns:
 - A list of form record models.
 
 
- 
formatOffsetTimestampToReadableString
public static String formatOffsetTimestampToReadableString(OffsetDateTime offsetDateTime, Locale locale)
Formats an offset date time to a readable string.- Parameters:
 offsetDateTime- The offset date time to format.locale- The locale to use for formatting.- Returns:
 - The formatted date time.
 
 
 - 
 
 -