Class UserPortalFileModel
- java.lang.Object
-
- de.xima.fc.user_portal.view_model.common.UserPortalFileModel
-
- All Implemented Interfaces:
Serializable
public class UserPortalFileModel extends Object implements Serializable
This class represents a file attached to a form record.- Since:
- 8.4.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserPortalFileModel(String fileName, UUID attachmentUuid, int fileSize, OffsetDateTime createdTimestamp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserPortalFileModel
forAttachment(de.xima.fc.api.rest.pub.client.form_record.model.BaseFormRecordAttachmentResource attachment)
static List<UserPortalFileModel>
forAttachments(List<de.xima.fc.api.rest.pub.client.form_record.model.BaseFormRecordAttachmentResource> attachments)
static UserPortalFileModel
forUserProfileFile(de.xima.fc.api.rest.pub.client.user.model.BaseUserProfileFileResource profileFile)
UUID
getAttachmentUuid()
OffsetDateTime
getCreatedTimestamp()
String
getFileExtension()
String
getFileName()
String
getFileNameWithoutExtension()
int
getFileSize()
String
getFormattedCreatedTimestamp(Locale locale)
String
getFormattedFileSize()
-
-
-
Constructor Detail
-
UserPortalFileModel
public UserPortalFileModel(String fileName, UUID attachmentUuid, int fileSize, OffsetDateTime createdTimestamp)
-
-
Method Detail
-
forAttachment
public static UserPortalFileModel forAttachment(de.xima.fc.api.rest.pub.client.form_record.model.BaseFormRecordAttachmentResource attachment)
-
forUserProfileFile
public static UserPortalFileModel forUserProfileFile(de.xima.fc.api.rest.pub.client.user.model.BaseUserProfileFileResource profileFile)
-
forAttachments
public static List<UserPortalFileModel> forAttachments(List<de.xima.fc.api.rest.pub.client.form_record.model.BaseFormRecordAttachmentResource> attachments)
-
getAttachmentUuid
public UUID getAttachmentUuid()
-
getCreatedTimestamp
public OffsetDateTime getCreatedTimestamp()
-
getFileExtension
public String getFileExtension()
-
getFileName
public String getFileName()
-
getFileNameWithoutExtension
public String getFileNameWithoutExtension()
-
getFileSize
public int getFileSize()
-
getFormattedFileSize
public String getFormattedFileSize()
-
-