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
-
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()
- Specified by:
getUUID
in interfaceIUUIDEntity
- Returns:
- UUID (Universal Unique Identifier) that identifies this type of entity. Usually is unique within a
context, e.g.
Mandant
,Projekt
, ...
-
setUUID
public void setUUID(String uuid)
- Specified by:
setUUID
in interfaceIUUIDEntity
-
getUUIDObject
public UUID getUUIDObject()
- Specified by:
getUUIDObject
in interfaceIUUIDEntity
-
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)
Deprecated.UsesetSender(IUser)
instead.- See Also:
setSender(IUser)
-
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)
-
-