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 String
ATTR_CHAT
static String
ATTR_CONTENT
static String
ATTR_READ_USER_PROFILES
static String
ATTR_SENDER_AUTH_REF
static String
ATTR_SENDER_CONTEXT
static String
ATTR_SENDER_NAME
static String
ATTR_SENDER_USER_PROFILE_UUID
static String
ATTR_SENT_INSTANT
static String
COL_CHAT_ID
static String
COL_CONTENT
static String
COL_SENDER_AUTH_REF
static String
COL_SENDER_CONTEXT
static String
COL_SENDER_NAME
static String
COL_SENDER_PROFILE_ID
Deprecated.static String
COL_SENDER_PROFILE_UUID
static String
COL_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()
FormRecordChat
getChat()
String
getContent()
Long
getId()
Set<UserProfile>
getReadUserProfiles()
Gets the user profiles that have read the message.String
getSenderAuthRef()
String
getSenderContext()
String
getSenderName()
UUID
getSenderUserProfileUuid()
Instant
getSentInstant()
List<FormRecordMessageUploadRequest>
getUploadRequests()
String
getUUID()
Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.UUID
getUUIDObject()
Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.boolean
isSender(IUser user)
void
setChat(FormRecordChat chat)
void
setContent(String content)
void
setReadUserProfiles(Set<UserProfile> readUserProfiles)
void
setSender(IUser user)
void
setSenderAuthRef(String senderAuthRef)
Deprecated.UsesetSender(IUser)
instead.void
setSenderContext(String senderContext)
void
setSenderName(String senderName)
void
setSenderUserProfileUuid(UUID senderUserProfileUuid)
Deprecated.UsesetSender(IUser)
instead.void
setSentInstant(Instant sentInstant)
void
setUploadRequests(List<FormRecordMessageUploadRequest> uploadRequests)
void
setUUID(String uuid)
Sets the UUID (universal unique identifier) that uniquely identifies this type of entity.void
setUUIDObject(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_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_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_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:IUUIDEntity
Gets 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 scopes
orproject scope
.- Specified by:
getUUID
in interfaceIUUIDEntity
- Returns:
- The UUID of the entity.
-
setUUID
public void setUUID(String uuid)
Description copied from interface:IUUIDEntity
Sets 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 scopes
orproject scope
.- Specified by:
setUUID
in interfaceIUUIDEntity
- Parameters:
uuid
- The UUID of the entity.
-
getUUIDObject
public UUID getUUIDObject()
Description copied from interface:IUUIDEntity
Gets 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 scopes
orproject scope
.- Specified by:
getUUIDObject
in 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)
-
getAttachments
public List<Attachment> getAttachments()
-
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)
-
-