Class UserPortalFileModel
java.lang.Object
de.xima.fc.user_portal.view_model.common.UserPortalFileModel
- All Implemented Interfaces:
Serializable
This class represents a file attached to a form record.
- Since:
- 8.4.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUserPortalFileModel(String fileName, UUID attachmentUuid, int fileSize, OffsetDateTime createdTimestamp) -
Method Summary
Modifier and TypeMethodDescriptionstatic UserPortalFileModelforAttachment(BaseFormRecordAttachmentResource attachment) static List<UserPortalFileModel> forAttachments(List<BaseFormRecordAttachmentResource> attachments) static UserPortalFileModelforUserProfileFile(BaseUserProfileFileResource profileFile) intgetFormattedCreatedTimestamp(Locale locale)
-
Constructor Details
-
UserPortalFileModel
public UserPortalFileModel(String fileName, UUID attachmentUuid, int fileSize, OffsetDateTime createdTimestamp)
-
-
Method Details
-
forAttachment
-
forUserProfileFile
-
forAttachments
public static List<UserPortalFileModel> forAttachments(List<BaseFormRecordAttachmentResource> attachments) -
getAttachmentUuid
-
getCreatedTimestamp
-
getFileExtension
-
getFileName
-
getFileNameWithoutExtension
-
getFileSize
public int getFileSize() -
getFormattedCreatedTimestamp
-
getFormattedFileSize
-