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>>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.static final Stringstatic final Stringstatic final StringFields inherited from class AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class AbstractEntity
COL_ID, idFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_IDFields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSIONFields inherited from interface ITransferableEntity
IMPORT_ID, INVALID_IDFields inherited from interface IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the list of attachments that are linked with this message.getChat()getExternalMessageCustomProperties(String extensionName) getExternalMessageCustomProperty(String extensionName, String propertyName) static StringgetExternalMessageCustomPropertyKey(String extensionName, String propertyName) getExternalMessageId(String extensionName) static StringgetExternalMessageIdPropertyKey(String extensionName) getId()Gets theuniversal reference IDs of users that have read the message.Gets the user profiles that have read the message.getUUID()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.booleanChecks if the message has unfulfilled upload requests.isExternalMessageSuccess(String extensionName) Checks if the message has been read by the given user.booleanChecks if the message has been read by the given user.booleanbooleanbooleanvoidmarkRead(UserProfile profile) Deprecated.voidMarks the message as read by the given user.voidsetAttachments(List<Attachment> attachments) Sets the list of attachments that are linked with this message.voidsetAttributes(Map<String, String> properties) voidsetChat(FormRecordChat chat) voidsetContent(String content) voidsetExternalMessageCustomProperty(String extensionName, String propertyName, String value) voidsetExternalMessageId(String extensionName, String messageRefId) voidsetExternalMessageProperties(String extensionName, Map<String, String> properties) voidsetExternalMessageResponse(String extensionName, IPluginSendMessageResponse response) voidsetExternalMessageSuccess(String extensionName, boolean success) voidsetReadByInboxUser(boolean readByInboxUser) voidsetReadByUserAuthRefs(Set<String> readByUserAuthRefs) voidsetReadUserProfiles(Set<UserProfile> readUserProfiles) voidvoidsetSenderAuthRef(String senderAuthRef) Deprecated.UsesetSender(IUser)instead.voidsetSenderContext(String senderContext) voidsetSenderName(String senderName) voidsetSenderUserProfileUuid(UUID senderUserProfileUuid) Deprecated.UsesetSender(IUser)instead.voidsetSentInstant(Instant sentInstant) voidsetSubject(String subject) voidsetUploadRequests(List<FormRecordMessageUploadRequest> uploadRequests) voidSets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid) Methods inherited from class AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class AbstractEntity
asIntValue, isPersisted, setId, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from interface Comparable
compareToMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted, setId
-
Field Details
-
ATTR_ATTACHMENTS
- See Also:
-
ATTR_CHAT
- See Also:
-
ATTR_SENDER_NAME
- See Also:
-
ATTR_SENDER_AUTH_REF
- See Also:
-
ATTR_SENDER_CONTEXT
- See Also:
-
ATTR_SENDER_USER_PROFILE_UUID
- See Also:
-
ATTR_SUBJECT
- See Also:
-
ATTR_CONTENT
- See Also:
-
ATTR_SENT_INSTANT
- See Also:
-
ATTR_READ_AUTH_REF
- See Also:
-
ATTR_READ_USER_PROFILES
- See Also:
-
ATTR_READ_BY_INBOX_USER
- See Also:
-
ATTR_PROPERTIES
- See Also:
-
COL_ATTACHMENT_ID
- See Also:
-
COL_CHAT_ID
- See Also:
-
COL_SENDER_NAME
- See Also:
-
COL_SENDER_AUTH_REF
- See Also:
-
COL_SENDER_CONTEXT
- See Also:
-
COL_READ_BY_INBOX_USER
- See Also:
-
COL_SENDER_PROFILE_ID
-
COL_SENDER_PROFILE_UUID
- See Also:
-
COL_MESSAGE_ID
- See Also:
-
COL_SUBJECT
- See Also:
-
COL_CONTENT
- See Also:
-
COL_SENT_TIMESTAMP
- See Also:
-
-
Constructor Details
-
FormRecordMessage
public FormRecordMessage()
-
-
Method Details
-
getId
-
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
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
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
-
getChat
-
setChat
-
getSenderName
-
setSenderName
-
getSenderAuthRef
-
setSenderAuthRef
Deprecated.UsesetSender(IUser)instead.- See Also:
-
getSenderContext
-
setSenderContext
-
getSenderUserProfileUuid
-
setSenderUserProfileUuid
Deprecated.UsesetSender(IUser)instead.- See Also:
-
getSubject
-
setSubject
-
getContent
-
setContent
-
getSentInstant
-
setSentInstant
-
getUploadRequests
-
setUploadRequests
-
getUploadRequestAttachments
-
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
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.
-
getReadByUserAuthRefs
Gets theuniversal reference IDs of users that have read the message.- Returns:
- the
universal reference IDs of users that have read the message.
-
setReadByUserAuthRefs
-
getReadUserProfiles
Gets the user profiles that have read the message.- Returns:
- the user profiles that have read the message.
-
setReadUserProfiles
-
isReadByInboxUser
public boolean isReadByInboxUser() -
setReadByInboxUser
public void setReadByInboxUser(boolean readByInboxUser) -
setSender
-
getAttributes
-
setAttributes
-
setExternalMessageResponse
-
getExternalMessageId
-
setExternalMessageId
-
isExternalMessageSuccess
-
setExternalMessageSuccess
-
getExternalMessageCustomProperties
-
getExternalMessageCustomProperty
-
setExternalMessageCustomProperty
-
setExternalMessageProperties
-
hasUnfulfilledUploadRequests
public boolean hasUnfulfilledUploadRequests()Checks if the message has unfulfilled upload requests.- Returns:
trueif the message has unfulfilled upload requests,falseif all upload requests have been fulfilled.- See Also:
-
isRead
-
isRead
Checks if the message has been read by the given user.- Parameters:
userRef- the user reference to check- Returns:
trueif the message has been read by the user andfalseif it has not been read.
-
isSender
-
isSender
-
markRead
Deprecated.UsemarkRead(IUser)instead.Marks the message as read by the given user.- Parameters:
profile- the user profile that has read the message
-
markRead
Marks the message as read by the given user.- Parameters:
user- the user that has read the message
-
getExternalMessageIdPropertyKey
-
getExternalMessageCustomPropertyKey
-
markRead(IUser)instead.