Class PendingUploadRequestModel
- java.lang.Object
-
- de.xima.fc.user_portal.view_model.messages.PendingUploadRequestModel
-
- All Implemented Interfaces:
IUserPortalChatEntryViewModel,Serializable
public class PendingUploadRequestModel extends Object implements IUserPortalChatEntryViewModel
Pending upload request view model class.- Since:
- 8.4.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PendingUploadRequestModelfromUploadRequest(de.xima.fc.api.rest.pub.client.form_record.model.BaseFormRecordMessageUploadRequestResource uploadRequest, de.xima.fc.api.rest.pub.client.form_record.model.BaseFormRecordMessageResource message)StringgetFormElementName()List<UserPortalFileModel>getPreviousFiles()StringgetSenderName()Get the sender name.StringgetSubject()Get the subject of the chat entry.InstantgetTimestamp()Get the sent time.StringgetTimestampToReadableDate(Locale locale)UploadRequestModelgetUploadRequest()UUIDgetUuid()booleanhasFooter()Check if the chat entry has a footer.booleanisFulfilled()booleanisHasPreviousFiles()booleanisOwnMessage()Check if the chat entry is a message sent by the current user.booleanisShowFooter()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.user_portal.view_model.messages.IUserPortalChatEntryViewModel
getSenderInitials
-
-
-
-
Method Detail
-
fromUploadRequest
public static PendingUploadRequestModel fromUploadRequest(de.xima.fc.api.rest.pub.client.form_record.model.BaseFormRecordMessageUploadRequestResource uploadRequest, de.xima.fc.api.rest.pub.client.form_record.model.BaseFormRecordMessageResource message)
-
getFormElementName
public String getFormElementName()
-
getPreviousFiles
public List<UserPortalFileModel> getPreviousFiles()
-
getSenderName
public String getSenderName()
Description copied from interface:IUserPortalChatEntryViewModelGet the sender name.- Specified by:
getSenderNamein interfaceIUserPortalChatEntryViewModel- Returns:
- the sender name
-
getTimestamp
public Instant getTimestamp()
Description copied from interface:IUserPortalChatEntryViewModelGet the sent time.- Specified by:
getTimestampin interfaceIUserPortalChatEntryViewModel- Returns:
- the sent time
-
hasFooter
public boolean hasFooter()
Description copied from interface:IUserPortalChatEntryViewModelCheck if the chat entry has a footer.- Specified by:
hasFooterin interfaceIUserPortalChatEntryViewModel- Returns:
- true if the chat entry has a footer, false otherwise
-
getSubject
public String getSubject()
Description copied from interface:IUserPortalChatEntryViewModelGet the subject of the chat entry.- Specified by:
getSubjectin interfaceIUserPortalChatEntryViewModel- Returns:
- the subject of the chat entry
-
isOwnMessage
public boolean isOwnMessage()
Description copied from interface:IUserPortalChatEntryViewModelCheck if the chat entry is a message sent by the current user.- Specified by:
isOwnMessagein interfaceIUserPortalChatEntryViewModel- Returns:
- true if the chat entry is a message sent by the current user, false otherwise
-
getUploadRequest
public UploadRequestModel getUploadRequest()
-
getUuid
public UUID getUuid()
-
isFulfilled
public boolean isFulfilled()
-
isHasPreviousFiles
public boolean isHasPreviousFiles()
-
isShowFooter
public boolean isShowFooter()
-
-