Class MessageAttachmentViewModel

java.lang.Object
de.xima.fc.inbox.model.messages.MessageAttachmentViewModel
All Implemented Interfaces:
Serializable

public class MessageAttachmentViewModel extends Object implements Serializable
View model for an Attachment of a FormRecordMessage in the inbox.
Since:
8.2.3
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • MessageAttachmentViewModel

      public MessageAttachmentViewModel(Long attachmentId, String fileName, long fileSize)
  • Method Details

    • toMessageAttachmentViewModels

      public static List<MessageAttachmentViewModel> toMessageAttachmentViewModels(List<Attachment> attachments)
    • getAttachmentId

      public Long getAttachmentId()
      The ID of the referenced attachment.
      Returns:
      The attachment's ID.
    • getFileName

      public String getFileName()
      The file name of the attachment.
      Returns:
      The file name.
    • getFileSize

      public String getFileSize(Locale locale)
      The file size in bytes of the attachment.
      Returns:
      The file size in bytes.