Package de.xima.fc.entities
Class FormRecordMessage
- java.lang.Object
 - 
- de.xima.cmn.dao.model.AEntity<Long>
 - 
- de.xima.fc.entities.AbstractEntity
 - 
- de.xima.fc.entities.AbstractLockableEntity
 - 
- de.xima.fc.entities.FormRecordMessage
 
 
 
 
 
- 
- All Implemented Interfaces:
 de.xima.cmn.dao.interfaces.IEntity<Long>,de.xima.cmn.dao.interfaces.ILockableEntity<Long>,ILockingVersionProviding,ITransferable,ITransferableEntity,ITransferableLockableEntity,IUUIDEntity,Serializable,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity public class FormRecordMessage extends AbstractLockableEntity implements IUUIDEntity
- See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringATTR_ATTACHMENTSstatic StringATTR_CHATstatic StringATTR_CONTENTstatic StringATTR_READ_USER_PROFILESstatic StringATTR_SENDER_AUTH_REFstatic StringATTR_SENDER_CONTEXTstatic StringATTR_SENDER_NAMEstatic StringATTR_SENDER_USER_PROFILE_UUIDstatic StringATTR_SENT_INSTANTstatic StringCOL_ATTACHMENT_IDstatic StringCOL_CHAT_IDstatic StringCOL_CONTENTstatic StringCOL_MESSAGE_IDstatic StringCOL_SENDER_AUTH_REFstatic StringCOL_SENDER_CONTEXTstatic StringCOL_SENDER_NAMEstatic StringCOL_SENDER_PROFILE_IDDeprecated.static StringCOL_SENDER_PROFILE_UUIDstatic StringCOL_SENT_TIMESTAMP- 
Fields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersion 
- 
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id 
- 
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID 
- 
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID 
 - 
 
- 
Constructor Summary
Constructors Constructor Description FormRecordMessage() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<Attachment>getAttachments()Gets the list of attachments that are linked with this message.FormRecordChatgetChat()StringgetContent()LonggetId()Set<UserProfile>getReadUserProfiles()Gets the user profiles that have read the message.StringgetSenderAuthRef()StringgetSenderContext()StringgetSenderName()UUIDgetSenderUserProfileUuid()InstantgetSentInstant()List<Attachment>getUploadRequestAttachments()List<FormRecordMessageUploadRequest>getUploadRequests()StringgetUUID()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.UUIDgetUUIDObject()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.booleanisSender(IUser user)voidsetAttachments(List<Attachment> attachments)Sets the list of attachments that are linked with this message.voidsetChat(FormRecordChat chat)voidsetContent(String content)voidsetReadUserProfiles(Set<UserProfile> readUserProfiles)voidsetSender(IUser user)voidsetSenderAuthRef(String senderAuthRef)Deprecated.UsesetSender(IUser)instead.voidsetSenderContext(String senderContext)voidsetSenderName(String senderName)voidsetSenderUserProfileUuid(UUID senderUserProfileUuid)Deprecated.UsesetSender(IUser)instead.voidsetSentInstant(Instant sentInstant)voidsetUploadRequests(List<FormRecordMessageUploadRequest> uploadRequests)voidsetUUID(String uuid)Sets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid)- 
Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toString 
- 
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId, setId 
- 
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode 
- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface java.lang.Comparable
compareTo 
 - 
 
 - 
 
- 
- 
Field Detail
- 
ATTR_ATTACHMENTS
public static final String ATTR_ATTACHMENTS
- See Also:
 - Constant Field Values
 
 
- 
ATTR_CHAT
public static final String ATTR_CHAT
- See Also:
 - Constant Field Values
 
 
- 
ATTR_SENDER_NAME
public static final String ATTR_SENDER_NAME
- See Also:
 - Constant Field Values
 
 
- 
ATTR_SENDER_AUTH_REF
public static final String ATTR_SENDER_AUTH_REF
- See Also:
 - Constant Field Values
 
 
- 
ATTR_SENDER_CONTEXT
public static final String ATTR_SENDER_CONTEXT
- See Also:
 - Constant Field Values
 
 
- 
ATTR_SENDER_USER_PROFILE_UUID
public static final String ATTR_SENDER_USER_PROFILE_UUID
- See Also:
 - Constant Field Values
 
 
- 
ATTR_CONTENT
public static final String ATTR_CONTENT
- See Also:
 - Constant Field Values
 
 
- 
ATTR_SENT_INSTANT
public static final String ATTR_SENT_INSTANT
- See Also:
 - Constant Field Values
 
 
- 
ATTR_READ_USER_PROFILES
public static final String ATTR_READ_USER_PROFILES
- See Also:
 - Constant Field Values
 
 
- 
COL_ATTACHMENT_ID
public static final String COL_ATTACHMENT_ID
- See Also:
 - Constant Field Values
 
 
- 
COL_CHAT_ID
public static final String COL_CHAT_ID
- See Also:
 - Constant Field Values
 
 
- 
COL_SENDER_NAME
public static final String COL_SENDER_NAME
- See Also:
 - Constant Field Values
 
 
- 
COL_SENDER_AUTH_REF
public static final String COL_SENDER_AUTH_REF
- See Also:
 - Constant Field Values
 
 
- 
COL_SENDER_CONTEXT
public static final String COL_SENDER_CONTEXT
- See Also:
 - Constant Field Values
 
 
- 
COL_SENDER_PROFILE_ID
@Deprecated public static final String COL_SENDER_PROFILE_ID
Deprecated.- See Also:
 - Constant Field Values
 
 
- 
COL_SENDER_PROFILE_UUID
public static final String COL_SENDER_PROFILE_UUID
- See Also:
 - Constant Field Values
 
 
- 
COL_MESSAGE_ID
public static final String COL_MESSAGE_ID
- See Also:
 - Constant Field Values
 
 
- 
COL_CONTENT
public static final String COL_CONTENT
- See Also:
 - Constant Field Values
 
 
- 
COL_SENT_TIMESTAMP
public static final String COL_SENT_TIMESTAMP
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getUUID
public String getUUID()
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
 getUUIDin interfaceIUUIDEntity- Returns:
 - The UUID of the entity.
 
 
- 
setUUID
public void setUUID(String uuid)
Description copied from interface:IUUIDEntitySets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
 setUUIDin interfaceIUUIDEntity- Parameters:
 uuid- The UUID of the entity.
 
- 
getUUIDObject
public UUID getUUIDObject()
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
 getUUIDObjectin interfaceIUUIDEntity- Returns:
 - The UUID of the entity.
 
 
- 
setUUIDObject
public void setUUIDObject(UUID uuid)
 
- 
getChat
public FormRecordChat getChat()
 
- 
setChat
public void setChat(FormRecordChat chat)
 
- 
getSenderName
public String getSenderName()
 
- 
setSenderName
public void setSenderName(String senderName)
 
- 
getSenderAuthRef
public String getSenderAuthRef()
 
- 
setSenderAuthRef
public void setSenderAuthRef(String senderAuthRef)
Deprecated.UsesetSender(IUser)instead.- See Also:
 setSender(IUser)
 
- 
getSenderContext
public String getSenderContext()
 
- 
setSenderContext
public void setSenderContext(String senderContext)
 
- 
getSenderUserProfileUuid
@Nullable public UUID getSenderUserProfileUuid()
 
- 
setSenderUserProfileUuid
public void setSenderUserProfileUuid(@Nullable UUID senderUserProfileUuid)Deprecated.UsesetSender(IUser)instead.- See Also:
 setSender(IUser)
 
- 
getContent
public String getContent()
 
- 
setContent
public void setContent(String content)
 
- 
getSentInstant
public Instant getSentInstant()
 
- 
setSentInstant
public void setSentInstant(Instant sentInstant)
 
- 
getUploadRequests
public List<FormRecordMessageUploadRequest> getUploadRequests()
 
- 
setUploadRequests
public void setUploadRequests(List<FormRecordMessageUploadRequest> uploadRequests)
 
- 
getUploadRequestAttachments
public List<Attachment> getUploadRequestAttachments()
 
- 
getAttachments
public List<Attachment> getAttachments()
Gets the list of attachments that are linked with this message. When a user sends a message, they can optionally select one or multiple files to attach to the message. These files are stored as attachments, and are referenced by the message. When the receiver reads a chat with a list of messages, they can see the attachments that are linked with each message.- Returns:
 - A list of attachments that are linked with this message.
 
 
- 
setAttachments
public void setAttachments(List<Attachment> attachments)
Sets the list of attachments that are linked with this message. When a user sends a message, they can optionally select one or multiple files to attach to the message. These files are stored as attachments, and are referenced by the message. When the receiver reads a chat with a list of messages, they can see the attachments that are linked with each message.- Parameters:
 attachments- A list of attachments that are linked with this message.
 
- 
getReadUserProfiles
public Set<UserProfile> getReadUserProfiles()
Gets the user profiles that have read the message.- Returns:
 - the user profiles that have read the message.
 
 
- 
setReadUserProfiles
public void setReadUserProfiles(Set<UserProfile> readUserProfiles)
 
- 
setSender
public void setSender(IUser user)
 
- 
isSender
public boolean isSender(IUser user)
 
 - 
 
 -